Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daniel-furman/recfeatureselect
Feature selection functions (1) using the multi-collinearity matrix and recursively proceeding to a spearman threshold and (2) using Forward Stepwise Selection running on an ensemble sklearner (with options for HPO).
https://github.com/daniel-furman/recfeatureselect
correlation-threshold machine-learning modeling multicollinearity recursion recursive-algorithm scikit-learn spearman-rho
Last synced: 26 days ago
JSON representation
Feature selection functions (1) using the multi-collinearity matrix and recursively proceeding to a spearman threshold and (2) using Forward Stepwise Selection running on an ensemble sklearner (with options for HPO).
- Host: GitHub
- URL: https://github.com/daniel-furman/recfeatureselect
- Owner: daniel-furman
- License: mit
- Created: 2021-03-15T00:05:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-15T19:14:24.000Z (about 3 years ago)
- Last Synced: 2024-10-12T21:44:44.094Z (26 days ago)
- Topics: correlation-threshold, machine-learning, modeling, multicollinearity, recursion, recursive-algorithm, scikit-learn, spearman-rho
- Language: Python
- Homepage: https://libraries.io/pypi/RecFeatureSelect/0.1
- Size: 1.84 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/daniel-furman/RecFeatureSelect.svg?branch=main)](https://travis-ci.com/daniel-furman/RecFeatureSelect)
## RecFeatureSelect
---
Feature selection via recursive removal of the most correlated pair. The feature importance scores are used as the rankings, deciding which variable to drop at each call.
Final covariance matrix with Method 2 for r < 0.85
![](test/data/heatmap.png)---
`pip import RecFeatureSelect`
`from RecFeatureSelect import feature_selector`* The main function can be found from the source folder, RecFeatureSelect.
* The input data consists of the original covariance matrix, the feature importance scores, a spearman correlation threshold, and the raw data.
* After the run the function will save the final covariance matrix to file as "cov.csv". All correlations will be less than the input threshold.---
* [RecFeatureSelect](https://github.com/daniel-furman/RecFeatureSelect/tree/main/src/RecFeatureSelect) - the library code itself
* [docs](https://github.com/daniel-furman/RecFeatureSelect/tree/main/docs) - instructions for import and basic use
* [LICENSE](https://github.com/daniel-furman/RecFeatureSelect/blob/main/LICENSE) - the MIT license, which applies to this package
* README.md - the README file, which you are now reading
* [requirements.txt](https://github.com/daniel-furman/RecFeatureSelect/blob/main/requirements.txt) - prerequisites to install this package, used by pip
* [setup.py](https://github.com/daniel-furman/RecFeatureSelect/blob/main/setup.py) - installer script
* [tests](https://github.com/daniel-furman/RecFeatureSelect/tree/main/test)/ - unit tests### Longer Description:
---
This function selects de-correlated features for a modeling experiment by filtering the most similar pair at each call. The algorithm reaches the
stopping case when all pairs of features are below the Spearman's statistic `threshold`. The feature importances are used as the ranking.