Statistical Inference for Sequential Feature Selection after Domain Adaptation
Project description
Statistical Inference for Sequential Feature Selection after Domain Adaptation
This package provides a statistical inference framework for sequential feature selection (SeqFS) after domain adaptation (DA). It leverages the SI framework and employs a divide-and-conquer strategy to efficiently compute the p-value of selected features. Our method ensures reliable feature selection by controlling the false positive rate (FPR) while simultaneously maximizing the true positive rate (TPR), effectively reducing the false negative rate (FNR).
For more details, refer to the paper at https://arxiv.org/abs/2501.09933
Installization
You can install this package from PyPI using:
pip install si-seqfs-da
Example
from si_seqfs_da import gendata, SI_SeqFS_DA
import numpy as np
ns = 50 #number of source's samples
nt = 10 #number of target's samples
p = 4 #number of features
true_beta_s = np.full((p,1), 2) #source's beta
true_beta_t = np.full((p,1), 0) #target's beta
Xs, Xt, Ys, Yt, Sigma_s, Sigma_t = gendata.generate(ns, nt, p, true_beta_s, true_beta_t)
#jth = None means randomly choose jth
K = 2 # number of features to be selected
print(SI_SeqFS_DA.SI_SeqFS_DA(Xs, Ys, Xt, Yt, K, Sigma_s, Sigma_t, method='forward', jth=None))
K = 'AIC' # stopping criterion
print(SI_SeqFS_DA.SI_SeqFS_DA(Xs, Ys, Xt, Yt, K, Sigma_s, Sigma_t, method='backward', jth=1))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file si_seqfs_da-0.1.tar.gz.
File metadata
- Download URL: si_seqfs_da-0.1.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57a993e9220dd576737edfb0b0092affb0b719d02df2dae80d37c866d7b5819a
|
|
| MD5 |
1c63da2c408650b40fc28be062ed897a
|
|
| BLAKE2b-256 |
4059141eabac19ae36e3935270c422a3628c15f04815e9ab4710de27b3f11252
|
File details
Details for the file si_seqfs_da-0.1-py3-none-any.whl.
File metadata
- Download URL: si_seqfs_da-0.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c3b5ea719834741692ca7106cfc4a0289955f8e41a9409c181a74229c9bea26
|
|
| MD5 |
f66002fd6af921a1d74681f351abb2e5
|
|
| BLAKE2b-256 |
64102d2e388f2f4954401f5451184cf665145f1b7d9b489bce36e404dfbe10d8
|