ProD, a visualizable filter-feature selection method based on "prodding" the class {Pro}bability {D}ensities for overlapping.
Install
ProD can be installed from PyPI:
pip install prod-fs
Example
from prod_fs import ProD
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import make_classification
# Create random classification dataset
X, y = make_classification(
n_samples=300, n_features=50, n_classes=3, n_informative=5,
shuffle=False
)
# Initialize ProD object
prodRanker = ProD()
# Carry out feature selection
prodRanker.fit(X, y)
# Get top 10 features
top10Features = prodRanker.get_topnFeatures(10)
# Visualize the top feature's ability to segregate PDEs
fig, axs = plt.subplots(1, 2, sharey=True)
# Top ranked feature
prodRanker.plot_overlapAreas(top10Features[0], legend="intersection", _ax=axs[0])
axs[0].set_title("Most relevant feature", loc="left")
# Last ranked feature
prodRanker.plot_overlapAreas(49, legend="intersection", _ax=axs[1])
axs[1].set_title("Least relevant feature", loc="left")
axs[0].set_ylabel(r"Probability Density, $\hat{P}$")
for i in range(2):
axs[i].set_xlim(-0.5, 1.5)
axs[i].set_xticks(np.arange(-0.5, 2.0, 0.5))
Citation
COMING SOON ...
The other feature selection methods that were compared to in our paper is as listed below:
-
LH-RELIEF: Feature weight estimation for gene selection: a local hyperlinear learning approach DOI: https://doi.org/10.1186/1471-2105-15-70
-
I-RELIEF: Iterative RELIEF for Feature Weighting: Algorithms, Theories, and Applications DOI: https://doi.org/10.1109/TPAMI.2007.1093
-
RELIEF-F: Estimating attributes: Analysis and extensions of RELIEF DOI: https://doi.org/10.1007/3-540-57868-4_57
-
MultiSURF: Benchmarking relief-based feature selection methods for bioinformatics data mining DOI: https://doi.org/10.1016/j.jbi.2018.07.015
-
Random Forests DOI: https://doi.org/10.1023/A:1010933404324
-
ANOVA F-statistic: Statistical Methods for Research Workers
-
Mutual Information: Estimating mutual information DOI: https://doi.org/10.1103/PhysRevE.69.066138
Metadata
Release files for prod-fs 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prod_fs-1.1.1.tar.gz | 8.6 kB | Without provenance | Details for prod_fs-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prod_fs-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for prod_fs-1.1.1-py3-none-any.whl |
Total release size: 17.8 kB
Release files / prod_fs-1.1.1.tar.gz
| Download URL | prod_fs-1.1.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a5c9c602786d98f55ffb083e8dd2075e0b2378b4022fb084fae1b669bc1bb1c
|
|
BLAKE2b-256 checksum How to use checksums |
1c5a3b098cc29c84a02df3671c966ba8713627bfe158ae8a726c19783c51fa03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / prod_fs-1.1.1-py3-none-any.whl
| Download URL | prod_fs-1.1.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ead7d7d47e436f4d20440d5330057380c1193c27d5486d2cfb2f33c1cf1da55d
|
|
BLAKE2b-256 checksum How to use checksums |
b5bf2914fb017de52f5688dac80f3133183bbe80dd091504d797188cbd7a3984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for prod-fs 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.