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.0.tar.gz (7.9 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.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psi_qpot-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 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.0.tar.gz
Algorithm Hash digest
SHA256 dbc78188a849bff4be8ff813d6b51ec426177206705d3b5e68a6b4a107e60d6e
MD5 ed1d4e1e6ebb3aa6f7c919320f4fa621
BLAKE2b-256 41d9b927367fa00a85cb93c4be3e3f8a12da8e9ff1117b132ffddbc8e24a12c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psi_qpot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1fab84d9d4576189b572492ee513ff05798efd02035fa9673bc5505cda14ace
MD5 f7c7a3f07daa92d88bc99e25acb5b74c
BLAKE2b-256 02532e05f72ac29bdf4562b65ba28ea8b11dbf3c03ce9645c8cb65b7d105bd33

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