Boruta
Python Implementation of Boruta Feature Selection
What it is and what it does
Boruta is a Python implementation of an all-relevant feature selection algorithm that identifies every feature carrying information useful for prediction, rather than finding a minimal optimal subset. It wraps ensemble methods from scikit-learn and uses a shadow-feature comparison approach with statistical testing to rank and select features. Unlike minimal-optimal methods that depend on classifier choice, Boruta aims to discover all contributing factors to your target variable, making it useful for exploratory analysis and understanding data relationships.
The package provides a scikit-learn-compatible interface (fit, transform, fit_transform) and includes refinements over the original R implementation: automatic estimator selection, feature ranking, percentile-based thresholds instead of strict maximums, and a two-step multiple-testing correction. It depends on numpy, scipy, and scikit-learn, making installation straightforward.
Use it for:
- Exploratory data analysis: identify all features related to your target to understand which factors influence your phenomenon.
- Biological or medical data: use relaxed thresholds (perc parameter) when Bonferroni correction is too harsh for your domain.
- Feature engineering validation: rank candidate features to guide which ones to engineer further or combine.
- Preprocessing before minimal-optimal methods: run Boruta first to reduce noise, then apply stricter selectors.
- Interpretability: obtain feature rankings and support masks to explain model decisions to stakeholders.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Boruta performs all-relevant feature selection by identifying all features carrying predictive information, using ensemble methods with a scikit-learn-compatible interface.
Yes, with conditions. Boruta is well-established (1625 GitHub stars, 258914 monthly downloads) and has no known vulnerabilities. Install it if you need all-relevant feature selection with a scikit-learn-compatible interface and can accept aging maintenance (last release 2024-08-13). Not suitable if you require active, frequent updates or the latest algorithmic refinements.
Install
boruta on PyPI
pip
pip install borutauv
uv add borutapoetry
poetry add borutaInstalling Boruta
Before you install
Low friction: pure Python wheel with only three standard dependencies (numpy, scipy, scikit-learn). Last release 2024-08-13; repository is active but maintenance status is aging with 731 days since release.
License in practice
BSD 3 clause is permissive; you can use, modify, and distribute Boruta with minimal restrictions in commercial or private projects.
Quickstart
pip install Boruta
from boruta import BorutaPy
feat_selector = BorutaPy(estimator, n_estimators='auto', verbose=2, random_state=1)
feat_selector.fit(X, y)
X_filtered = feat_selector.transform(X)
Requires numpy arrays as input (not pandas DataFrames directly); convert with .values if needed.
Verify before relying
- Whether the package is actively maintained going forward (aging status suggests infrequent updates).
- Performance characteristics on datasets with thousands of features.
- Current state of the original R package and how closely this implementation tracks it.
Package facts
| License | BSD 3 clause (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — numpy, scikit-learn, scipy |
| Maintenance | aging — 731 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 258,914/month — #8,422 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Boruta-0.4.3-py3-none-any.whl
Keywords: feature selection, machine learning, random forest
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
mlxtendMlxtend provides ensemble methods, feature…
permissive · top 5,000 on PyPI
mrmr-selectionImplements the mRMR (minimum Redundancy -…
unclear · top 15,000 on PyPI
powershapPowershap performs feature selection by testing…
permissive · top 15,000 on PyPI
treeinterpreterDecomposes scikit-learn decision tree and…
permissive · top 15,000 on PyPI
forestciComputes confidence intervals and variance…
permissive · top 15,000 on PyPI
feature-engineFeature-engine provides transformers for…
permissive · top 15,000 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
tensorflow-decision-forestsTrains and deploys decision forest models…
permissive · top 15,000 on PyPI
yellowbrickYellowbrick provides scikit-learn-integrated…
permissive · top 15,000 on PyPI
sagemaker-scikit-learn-extensionExtends scikit-learn with additional estimators…
permissive · top 15,000 on PyPI