--- id: mrmr-selection version: "0.2.8" license: GNU General Public License v3.0 license_treatment: unclear maintenance: dormant --- # mrmr-selection — minimum-Redundancy-Maximum-Relevance algorithm for feature selection License: unclear · Maintenance: dormant · Downloads: 73.5K/mo ## What it is and what it does mrmr_selection implements a minimal-optimal feature selection algorithm designed to find the smallest subset of features that retain predictive power for a machine learning task. Unlike all-relevant methods that identify every feature with some relationship to the target, mRMR prioritizes efficiency by selecting only the most informative features while minimizing redundancy among them. The package provides separate modules for Pandas, Polars, Spark, and BigQuery, each exposing mrmr_classif (for categorical targets) and mrmr_regression (for numeric targets) functions. It depends on pandas, numpy, scipy, joblib, category-encoders, jinja2, tqdm, and polars. The algorithm returns a ranked list of the top K selected features, allowing further filtering if needed. Use it for: - Reduce dataset dimensionality in production ML pipelines where frequent, automated feature selection is needed without manual tuning. - Identify the most predictive features in high-dimensional datasets to lower memory and computation costs in model training and inference. - Improve model interpretability by selecting a minimal set of features that explain predictions while maintaining accuracy. - Perform feature selection on large-scale data stored in Spark or BigQuery without loading entire datasets into memory. - Benchmark feature importance across classification and regression tasks to guide domain expert review of model inputs. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Implements the mRMR (minimum Redundancy - Maximum Relevance) feature selection algorithm to identify the smallest subset of relevant features for classification and regression tasks across Pandas, Polars, Spark, and BigQuery. Yes, if you need minimal-optimal feature selection and accept dormant maintenance. The algorithm is well-established and used in production systems, dependencies are stable, and no known vulnerabilities exist. Install friction is low. However, the last release was 2023-06-30 with no recent commits, so expect no active support for new dependency versions or bug fixes. GPL v3.0 licensing is a hard constraint for proprietary projects. Best suited for open-source or internal ML workflows where feature selection is a one-time or infrequent task. ## Install pip install mrmr-selection uv add mrmr-selection poetry add mrmr-selection ## Installing mrmr-selection Before you install: Low install friction with a pure Python wheel and common data science dependencies. Maintenance is dormant—last release was 2023-06-30 and no commits since 2024-11-19—so expect no active bug fixes or updates, though the core algorithm is stable. License in practice: Licensed under GNU General Public License v3.0, which requires derivative works and distributions to also be open-source under GPL v3.0. This is a strong copyleft license; proprietary or closed-source projects may face legal constraints. Quickstart: pip install mrmr_selection import pandas as pd from mrmr import mrmr_classif X = pd.DataFrame([[1, 2], [3, 4]]) y = pd.Series([0, 1]) selected_features = mrmr_classif(X=X, y=y, K=1) Verify before relying: - Whether the package actively maintains compatibility with recent versions of its dependencies (pandas, numpy, scipy, etc.) - Current status of Spark and BigQuery module support and any known limitations - Whether Python version support is documented elsewhere (requires_python is empty in metadata) - Performance characteristics and scalability limits on large datasets ## Package facts - License: GNU General Public License v3.0 (unclear) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 73.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags feature selection algorithm, minimum redundancy maximum relevance, mrmr feature selection, optimal feature subset, dimensionality reduction, feature ranking, automated feature selection, feature-selection, machine-learning, dimensionality-reduction [View on SkillFed](https://skillfed.io/packages/mrmr-selection) · [View on PyPI](https://pypi.org/project/mrmr-selection/)