Skip to main content

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}

Metadata

Release files for cbfs 0.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 cbfs 0.1.0
File Size Uploaded
cbfs-0.1.0.tar.gz 31.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cbfs 0.1.0
File Interpreter ABI Platform
cbfs-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 63.8 kB

Release files / cbfs-0.1.0.tar.gz

Download URL cbfs-0.1.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
10ce96672526e390d861d7d5b528ee7b0079bfa30f0908977996564e4bc40279
BLAKE2b-256 checksum
How to use checksums
1d702336ed61996db2dfffd13e6beb6dd863f23d09d858bf379589875af4abc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release files / cbfs-0.1.0-py3-none-any.whl

Download URL cbfs-0.1.0-py3-none-any.whl
Size 32.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2438f5a26b15b1188b4a09e746ef09d59ff0a1d2dc0ae6cd07bfa467e1a6cb52
BLAKE2b-256 checksum
How to use checksums
8541c05aba031b716859c24a039034d555e8e1ea67bc541c4a4e05831ea46322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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