mlxtend
Machine Learning Library Extensions
What it is and what it does
Mlxtend is a library of utilities and extensions for machine learning and data science built on top of the scientific Python stack. It fills gaps in common workflows by providing ensemble voting and stacking classifiers, feature selection and extraction techniques, and a suite of visualization helpers for model analysis and decision boundaries.
The library is primarily used for tasks like combining multiple classifiers through weighted voting or stacking, selecting relevant features from high-dimensional data, mining frequent itemsets with the Apriori algorithm, and plotting decision regions and confusion matrices for model interpretation. It depends on scipy, numpy, pandas, scikit-learn, matplotlib, and joblib, and is designed to integrate into existing data science pipelines.
Use it for:
- Build ensemble classifiers that combine predictions from multiple base learners with configurable voting strategies and weights.
- Perform feature selection to identify the most informative features and reduce dimensionality before model training.
- Visualize decision boundaries and regions for classification problems to understand model behavior.
- Mine association rules and frequent itemsets from transactional data using the Apriori algorithm.
- Plot confusion matrices and other model evaluation artifacts for classification model analysis.
- Extract features using automated feature engineering methods.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Mlxtend provides ensemble methods, feature selection, visualization utilities, and frequent pattern mining algorithms for machine learning workflows.
Yes. Mlxtend is actively maintained, has low install friction, carries no known vulnerabilities, and offers a focused set of utilities for ensemble methods, feature selection, and visualization—common tasks in machine learning workflows. The permissive BSD 3-Clause license poses no commercial restrictions. Install it if you need these specific capabilities.
Install
mlxtend on PyPI
pip
pip install mlxtenduv
uv add mlxtendpoetry
poetry add mlxtendInstalling mlxtend
Before you install
Low friction installation as a pure Python wheel with six well-established scientific dependencies. Actively maintained with recent commits and stable production status.
License in practice
Released under permissive BSD 3-Clause license, commercially usable with no warranty. Artistic works in the distribution are separately licensed under Creative Commons Attribution 4.0 International.
Quickstart
pip install mlxtend
from mlxtend.classifier import EnsembleVoteClassifier
from mlxtend.plotting import plot_decision_regions
from mlxtend.data import iris_data
X, y = iris_data()
eclf = EnsembleVoteClassifier(clfs=[], voting='soft')
eclf.fit(X, y)
Requires Python 3.11 or later.
Verify before relying
- Whether the Apriori algorithm implementation handles large datasets efficiently or has known performance limits.
- Specific version compatibility guarantees with scipy, numpy, pandas, matplotlib, and joblib beyond the stated runtime dependencies.
Package facts
| License | BSD 3-Clause (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — scipy, numpy, pandas, scikit-learn, matplotlib, joblib |
| Maintenance | actively maintained — 69 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,130,691/month — #4,319 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mlxtend-0.25.0-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
BorutaBoruta performs all-relevant feature selection…
permissive · top 15,000 on PyPI
cornerGenerates publication-quality corner plots…
permissive · top 15,000 on PyPI
skope-rulesSkope-rules learns interpretable logical rules…
permissive · top 15,000 on PyPI
dtreevizdtreeviz renders decision trees from…
permissive · top 15,000 on PyPI
xgboostXGBoost is a gradient boosting library that…
permissive · top 1,000 on PyPI
treeinterpreterDecomposes scikit-learn decision tree and…
permissive · top 15,000 on PyPI
yellowbrickYellowbrick provides scikit-learn-integrated…
permissive · top 15,000 on PyPI
pytabkitPyTabKit provides scikit-learn interfaces to…
permissive · top 15,000 on PyPI
pm4pyPM4Py implements process mining algorithms to…
agpl · top 15,000 on PyPI
gamma-pytoolsA collection of machine learning and…
permissive · top 15,000 on PyPI