Skip to main content

Feature Selection Companion

A consolidated feature selection decision support system (DSS) that employs variance thresholding, missing values ratios, and pairwise correlations.


How to Use

Installation

In your terminal, simply type:

pip install feseco

Importing the Package

The class that you will need to import is CompanionFS which stands for "Companion - Feature Selector".

from feseco import CompanionFS

Example Usage

For example, you have a dataset and you want to identify which features to drop. You can do this simply by calling the filter_features() method of the CompanionFS object.

from feseco import CompanionFS

file_path = "your_dataset.csv"

# You pass the path to your dataset. Optionally, you can pass a feature of the dataset as an argument. This way, the class analyzes the features relative to your target column.
cfs = CompanionFS(file_path, target_col="my_feature")

features_to_drop = cfs.filter_features()

Optionally, you can change the thresholds for each of the feature selection method. See the example below:

cfs = CompanionFS(
    file_path, 
    var_threshold=0.1,      # variance threshold; default is 0.1
    mvr_threshold=0.5,      # missing value ratio threshold; default is 0.5
    corr_threshold=0.75,    # correlation analysis threshold; default is 0.75
    target_col="my_feature"
)

License

This project is licensed under the MIT License.

View the LICENSE

Attribution Requirements

When building upon or reusing this work, please include:

Example acknowledgment:

“This work builds on Feature Selection Companion by Jasper Gomez (MIT License).”

Following these guidelines helps support academic and ethical reuse.

Metadata

Release files for feseco 0.4.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 feseco 0.4.0
File Size Uploaded
feseco-0.4.0.tar.gz 5.2 kB Details

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / feseco-0.4.0.tar.gz

Download URL feseco-0.4.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5ff1d773aa8134f9ab828bbffb270a931dc78e18dc368a55012f6f818585fd73
BLAKE2b-256 checksum
How to use checksums
cd0c330536baba09d7450383357b525c947e215e17b0cc73a2c37bde127413e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / feseco-0.4.0-py3-none-any.whl

Download URL feseco-0.4.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9bb500dec9f0e82367c6c434499d3099e5b2dc9123dc0a9fb4bc8617700781b
BLAKE2b-256 checksum
How to use checksums
b7fd5edafa23623bda2512f5ecbac17e2d1c27ef9573fa473b9dbf0a4b5de634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

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