Python Implementation of Boruta Feature Selection
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install borutaboruta_py
This project hosts Python implementations of the Boruta all-relevant feature selection method.
How to install
Install with pip:
pip install Boruta
or with conda:
conda install -c conda-forge boruta_py
Dependencies
- numpy
- scipy
- scikit-learn
How to use
Download, import and do as you would with any other scikit-learn method:
- fit(X, y)
- transform(X)
- fit_transform(X, y)
Description
Python implementations of the Boruta R package.
This implementation tries to mimic the scikit-learn interface, so use fit, transform or fit_transform, to run the feature selection.
For more, see the docs of these functions, and the examples below.
Original code and method was authored by Miron B. Kursa.
Boruta is an all relevant feature selection method, while most other are minimal optimal; this means it tries to find all features carrying information usable for prediction, rather than finding a possibly compact subset of features on which some classifier has a minimal error.
Why bother with all relevant feature selection? When you try to understand the phenomenon that made your data, you should care about all factors that contribute to it, not just the bluntest signs of it in context of your methodology (yes, minimal optimal set of features by definition depends on your classifier choice).
What's different in BorutaPy?
It is the original R package recoded in Python with a few added extra features. Some improvements include: