Skip to main content

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:

  1. LH-RELIEF: Feature weight estimation for gene selection: a local hyperlinear learning approach DOI: https://doi.org/10.1186/1471-2105-15-70

  2. I-RELIEF: Iterative RELIEF for Feature Weighting: Algorithms, Theories, and Applications DOI: https://doi.org/10.1109/TPAMI.2007.1093

  3. RELIEF-F: Estimating attributes: Analysis and extensions of RELIEF DOI: https://doi.org/10.1007/3-540-57868-4_57

  4. MultiSURF: Benchmarking relief-based feature selection methods for bioinformatics data mining DOI: https://doi.org/10.1016/j.jbi.2018.07.015

  5. Random Forests DOI: https://doi.org/10.1023/A:1010933404324

  6. ANOVA F-statistic: Statistical Methods for Research Workers

  7. Mutual Information: Estimating mutual information DOI: https://doi.org/10.1103/PhysRevE.69.066138

Metadata

Release files for prod-fs 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prod-fs 1.1.2
File Size Uploaded Provenance Actions
prod_fs-1.1.2.tar.gz 9.6 kB Without provenance Details for prod_fs-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prod-fs 1.1.2
File Interpreter ABI Platform Actions
prod_fs-1.1.2-py3-none-any.whl Python 3 none any Details for prod_fs-1.1.2-py3-none-any.whl

Total release size: 19.9 kB

Release files / prod_fs-1.1.2.tar.gz

Download URL prod_fs-1.1.2.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6d80885dc66e2371e8d1945028b20200455fb9d079eee8818b98f966bf305654
BLAKE2b-256 checksum
How to use checksums
b1fbf13dbc029520130242611e48b3dc3f0abb7ebc570a1c34028a4b79042f74
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.2-py3-none-any.whl

Download URL prod_fs-1.1.2-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
448cbfac5447617692ad55b8ba31b5d5d0fcd4eee2af62ffcbf0bccc29e1c3d6
BLAKE2b-256 checksum
How to use checksums
06b7184613086a29015689645ff13e02e43beb96b5373811d4fee9cc9bdc9f87
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.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page