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.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| feseco-0.4.0.tar.gz | 5.2 kB | Without provenance | Details for feseco-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feseco-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for feseco-0.4.0-py3-none-any.whl |
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
|
Security for feseco 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.