Home / Market & alternative data
mlfinlab
Financial machine learning toolbox for quantitative research in Python
What it is
A Python library implementing techniques from Marcos Lopez de Prado's "Advances in Financial Machine Learning", covering the full machine learning strategy pipeline from financial data structures and feature engineering to labeling, cross-validation, bet sizing, and backtest statistics. Quantitative researchers can draw on modules for sampling, clustering, hyper-parameter tuning, feature importance, synthetic data generation, and measures of codependence, supported by documentation, example notebooks, and lecture videos. The library is well suited to practitioners building machine learning strategies who want tested implementations of academic methods. Access is governed by an all-rights-reserved licence, so it is not open source despite appearing in a public repository, and community support is tied to paid licensing options.
At a glance
Research onlyOur rating, based on popularity, maintenance and how ready it is for real use.
| Best for | Professional quants |
|---|---|
| Used for | Strategy research, Data analysis |
| Markets | Multi-market |
| Stack | Python |
| Learning curve | Steep learning curve |
| Practical value | Medium practical value |
| Cost | Mostly paid |
| Hardware | No GPU needed |
| Maintenance | No commits in over six months |
GitHub stars, last 30 days
Daily snapshots since 2026-09-12 (up to 30 days): +16 over the period, now 4,939. Gaps mean no snapshot was taken that day.
Implementations regarding "Advances in Financial Machine Learning" by Marcos Lopez de Prado. (Feature Engineering, Financial Data Structures, Meta-Labeling).
Similar tools
Jupyter notebooks companion to Machine Learning for Trading
Portfolio analytics and performance tear sheets for quants
Goldman Sachs Python toolkit for derivatives and risk
scikit-learn compatible Python library for portfolio optimization
CVXPY-based portfolio optimization and strategic asset allocation
Python financial econometrics with ARCH, GARCH and volatility models