A consolidated feature selection decision support system (DSS) that employs variance thresholding, missing values ratios, and pairwise correlations.
Project description
Feature Selection Companion
A consolidated feature selection decision support system (DSS) that employs variance thresholding, missing values ratios, and pairwise correlations.
Link to Web-Based Platform
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:
- Author name: Jasper Gomez
- Repository name: Feature Selection Companion
- Repository link: https://github.com/jasper-gomez/feature-selection-companion/tree/refactor/package
- Citation using the
CITATION.cffmetadata - A note in your documentation, publication, or code comments acknowledging the original work
Example acknowledgment:
“This work builds on Feature Selection Companion by Jasper Gomez (MIT License).”
Following these guidelines helps support academic and ethical reuse.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feseco-0.4.0.tar.gz.
File metadata
- Download URL: feseco-0.4.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ff1d773aa8134f9ab828bbffb270a931dc78e18dc368a55012f6f818585fd73
|
|
| MD5 |
9f5eaa64d1f6c012c9921366ea2499af
|
|
| BLAKE2b-256 |
cd0c330536baba09d7450383357b525c947e215e17b0cc73a2c37bde127413e8
|
File details
Details for the file feseco-0.4.0-py3-none-any.whl.
File metadata
- Download URL: feseco-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9bb500dec9f0e82367c6c434499d3099e5b2dc9123dc0a9fb4bc8617700781b
|
|
| MD5 |
932706eea6bc853f4837adc9c5a8bed7
|
|
| BLAKE2b-256 |
b7fd5edafa23623bda2512f5ecbac17e2d1c27ef9573fa473b9dbf0a4b5de634
|