Skip to main content

PSI-QPOT: Post-Selection Inference for Sparse Estimators Cast as Quadratic Programs after Domain Adaptation

Project description

PSI-QPOT: Post-Selection Inference for Sparse Estimators Cast as Quadratic Programs after Domain Adaptation

PSI-QPOT is a Python package that implements a selective inference (SI) framework for conducting valid statistical inference after Quadratic Programming (QP)-cast Feature Selection algorithms in the presence of Optimal Transport (OT)-based domain adaptation (DA). The main idea is to leverages the SI framework and employs a divide-and conquer approach to efficiently compute the $p$ -value. Our proposed methods provides valid $p$-value for FS-DA results, by keeping the false positive rate (FPR) under control, while also maximizing the true positive rate (TPR), i.e., lowering the false negative rate (FNR).

PSI-QPOT Illustration

Requirements

This package has the following requirements:

cvxpy
mpmath
numpy
POT
scikit-learn
scipy

Installation

Package Installation

This package can be installed using pip:

$ pip install psi_qpot

Usage

We provide several Jupyter notebooks demonstrating how to use the psi_qpot package in action.

  • Examples for conducting inference for QP-cast Feature Selection after OT-based DA
>> ex1_PSI-QPOT.py
  • Check the uniformity of the pivot
>> ex2_validity_of_p_value.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psi_qpot-0.1.1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psi_qpot-0.1.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file psi_qpot-0.1.1.tar.gz.

File metadata

  • Download URL: psi_qpot-0.1.1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for psi_qpot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 64581218a26f7de92a820e4c357b7dff33af3425934536faf785695f7851de73
MD5 804b840fc76227215234a5eb8393a362
BLAKE2b-256 4d9f6f9b47fc3ba853cf88a229e8c74147ce9da3309a1294f7964d09ea73dcb5

See more details on using hashes here.

File details

Details for the file psi_qpot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: psi_qpot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for psi_qpot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a3b0a1d93699eb2ad98556463e4869c0de412fdd1ea4f7b59cebc3389fff952
MD5 d863bbb004f34f0cf59230c22ba5493a
BLAKE2b-256 6e93d130a3bd6b10610c7686e73e20cef728ad2275cb386194292961b6a5734e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page