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.0

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.0
File Size Uploaded Provenance Actions
prod_fs-1.1.0.tar.gz 8.5 kB Without provenance Details for prod_fs-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.8 kB

Release files / prod_fs-1.1.0.tar.gz

Download URL prod_fs-1.1.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6bfe64adb80cb0fbcf0e0cd8717709ab1bb4ad89a843e9521c3e51ac4648560a
BLAKE2b-256 checksum
How to use checksums
86458ba6b1bb97c0a01d8e2fafb77be1b0f5a60b261279d5bbbc42b75f129900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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.0-py3-none-any.whl

Download URL prod_fs-1.1.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42993681a5857ed8e84bca16b2aff938a6984685f7827a44b587ed5b285eea1a
BLAKE2b-256 checksum
How to use checksums
c99e5873a1ed2baf231b81f49016c039108396d3108828d7e0ad10b79aaff1f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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.0

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