Skip to main content

GB-FS

gbfs is a comprehensive repository dedicated to advancing Graph-Based Feature Selection methodologies in machine learning. Our project houses two significant contributions to the field: GB-AFS and GB-BC-FS, each developed to address the intricate challenges of feature selection with graph-based solutions.

Downloads Downloads ci Status Tests Status

Table of contents

Our Contributions

  • GB-AFS (Graph-Based Automatic Feature Selection): A method that automates the process of feature selection for multi-class classification tasks, ensuring the minimal yet most effective set of features is utilized for model training.

  • GB-BC-FS (Graph-Based Budget-Constrained Feature Selection): Currently in development, this method seeks to enhance feature selection by integrating budget constraints, ensuring the cost of each feature is considered.

Installation

gbfs has been tested with Python 3.10.

pip

$ pip install gbfs 

Clone from GitHub

$ git clone https://github.com/davidlevinwork/gbfs.git && cd gbfs
$ poetry install
$ poetry shell

Usage

GB-AFS

Initialization

To begin working with GB-AFS, the first step is to initialize the GB-AFS object:

from gbfs import GBAFS

gbafs = GBAFS(
    dataset_path="path/to/your/dataset.csv",
    separability_metric="your_separability_metric",
    dim_reducer_model="your_dimensionality_reduction_method",
    label_column="class",
)

Feature-Selection

After initializing the GB-AFS object, you can move forward with the process of selecting features:

selected_features = gbafs.select_features()

print("Selected Feature Indices:", selected_features)

Visualization

GB-AFS also incorporates a technique for visualizing the chosen features within the feature space, offering insights into their distribution and how distinct they are:

gbafs.plot_feature_space()

GB-BC-FS

Status

Currently in development.

Documentation

For more information on available commands and usage, refer to the documentation.

Contribution

Contributions to gbfs are welcome! If you encounter any issues or have suggestions for improvements, please open an issue.

Citation

Metadata

Release files for gbfs 0.2.1

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

Source distribution (sdist)

Source distribution for gbfs 0.2.1
File Size Uploaded
gbfs-0.2.1.tar.gz 17.2 kB Details

Built distribution (wheel)

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

Total release size: 39.5 kB

Release files / gbfs-0.2.1.tar.gz

Download URL gbfs-0.2.1.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ade78bcabcc79305af0671cca6c28b8ef005abd43b4a16d94090054edd303eee
BLAKE2b-256 checksum
How to use checksums
5599ccbdcfcd472fa9349ed2e19bc7e81bd2e5eca6ec178c6bebd8b97b9fe6e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.14 Linux/6.5.0-1018-azure

Release files / gbfs-0.2.1-py3-none-any.whl

Download URL gbfs-0.2.1-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3671ae2f0cb08d92e24e66ea987a8d91c8753c849db71464e22b4db418ea5239
BLAKE2b-256 checksum
How to use checksums
63b4fa14a06334ad7e3f0db21679bbe8408ee48e2005660bc259726d8fae4e99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.14 Linux/6.5.0-1018-azure

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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