Skip to main content

A implementation of PSI-GLAD: Post-Selection Inference for Generalized Linear after Optimal Transport-based Domain Adaptation

Project description

Post-Selection Inference for Generalized Lasso after Optimal Transport-based Domain Adaptation

PyPI version License

PSI-GLAD is a Python package that implements a selective inference (SI) framework for conducting valid statistical inference after generalized lasso (GL) in the presence of 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 GL-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).

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_glad

Usage

We provide several Jupyter notebooks demonstrating how to use the stand-da package in action.

  • Examples for conducting inference for Feature Selection/Change Point Detection-based Generalized Lasso after OT-based DA
>> ex1_feature_selection_after_DA.ipynb
>> ex2_change_point_detection_after_DA.ipynb
  • Check the uniformity of the pivot
>> ex3_validity_of_p_value.ipynb

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_GLAD-0.1.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

PSI_GLAD-0.1.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for PSI_GLAD-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5d59b930e06d77c9f948a73b66e818591af77b91a6132fee5be4d82f11e66da9
MD5 bce9fb8e6ef2059ddb90ad95225e59d8
BLAKE2b-256 5c64a0f10bf1c4994eb2c6bea754db16828f70460d99e92750cd46cb06f85f85

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PSI_GLAD-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddef653bb28d49c93527294bb18d5fcfeb4236396a3d170a58ca757583d29250
MD5 24af3554ae508073d05b4c9e3544a413
BLAKE2b-256 7a720554808a763c331cbcc71113a0fb858ced61a5886550897c078763ada3b9

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