Skip to main content

Floating Feature Selection guided by Strangeness Quantification

Project description

Bidirectional Floating Feature Selection Guided by Uncertainty Quantification

Authors: Marcos López-De-Castro, José González-Gomariz, Alberto García-Galindo Farnoosh Abbas-Aghababazadeh, Kewei Ni, Benjamin Haibe-Kains, Ruben Armañanzas Arnedillo,

Contact: mlopezdecas@unav.es

Description: Conformal prediction–driven feature selection, with applications in immuno-oncology datasets. We propose a novel bidirectional floating algorithm for feature selection named Conformal Bidirectional Floating Search Algorithm (CBFS), in which the feature search is enhanced by information from the conformal prediction framework.


pixi-badge

GitHub last commit GitHub issues GitHub pull requests GitHub contributors GitHub release (latest by date)

Set Up

Prerequisites

Clone environment in pixi.toml with

pixi install

or install via:

pip install cbfs

Usage

from cbfs import ffs


data_path = "your_path.h5ad" # .csv are also supported
target_column =  "target-column-name"
run_id= 0 # equivalent to random seed (int)

ffs_instance = ffs.FloatingFeatureSelector(run_id=run_id, data_path=data_path, target_column=target_column)
experiment_result = ffs_instance.run_ffs(n_feat=10)


print("Experiment completed successfully!")

print("Selected features:", experiment_result)

coverage = ffs_instance.Empirical_coverage_
uncertainty = ffs_instance.Uncertainty_
certainty = ffs_instance.Certainty_

print(f"Empirical coverage: {coverage}")
print(f"Uncertainty: {uncertainty}")
print(f"Certainty: {certainty}")

all_results[run_id] = {"selected_features": experiment_result, "run_id": run_id, "empirical_coverage": coverage,
                    "uncertainty": uncertainty, "certainty": certainty}

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

cbfs-0.1.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

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

cbfs-0.1.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file cbfs-0.1.0.tar.gz.

File metadata

  • Download URL: cbfs-0.1.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for cbfs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10ce96672526e390d861d7d5b528ee7b0079bfa30f0908977996564e4bc40279
MD5 5f76f278a4c857d74aa9dffe66e6f7dd
BLAKE2b-256 1d702336ed61996db2dfffd13e6beb6dd863f23d09d858bf379589875af4abc8

See more details on using hashes here.

File details

Details for the file cbfs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cbfs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for cbfs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2438f5a26b15b1188b4a09e746ef09d59ff0a1d2dc0ae6cd07bfa467e1a6cb52
MD5 34b4b2b92ab1bd1da5ef8989349904b1
BLAKE2b-256 8541c05aba031b716859c24a039034d555e8e1ea67bc541c4a4e05831ea46322

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