skillfed

mlxtend

Machine Learning Library Extensions

mlxtend v0.25.0 1.1M downloads/30d#4,319 on PyPI5,167
Permissive license BSD 3-Clause Active released

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 mlxtend

uv

uv add mlxtend

poetry

poetry add mlxtend

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: BSD LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: Python :: 3.11Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Image RecognitionTopic :: Scientific/Engineering :: Information Analysis

Tags

ensemble voting stacking classifiersfeature selection extraction machine learningdecision region visualizationapriori association rule miningmodel analysis plotting utilitiesconfusion matrix visualizationfrequent itemset mining
ensemble-learningfeature-selectionvisualization

More Scientific/Engineering packages