Home / Backtesting & trading frameworks
machine-learning-for-trading
Jupyter notebooks companion to Machine Learning for Trading
What it is
A collection of Jupyter notebooks accompanying Stefan Jansen's Machine Learning for Trading book, covering the full path from data sourcing to live strategy execution. The code spans 27 chapters and nine case studies, including gradient boosting, deep time-series models, causal machine learning, reinforcement learning, and live trading via Interactive Brokers, Alpaca, and QuantConnect. Quant traders and developers who want to learn ML-driven strategy research and deployment end to end will find it most useful. As book companion material, the notebooks are research code for study rather than a production-ready trading product.
At a glance
RecommendedOur 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 | Moderate learning curve |
| Practical value | High practical value |
| Cost | Free and open source |
| Hardware | GPU optional |
| Maintenance | Commits today |
Popularity snapshots
Daily snapshots of GitHub stars. Star changes are not a count of users or usage. Snapshots since 2026-11-02 (up to 30 days): first-to-last change +500 , latest 22,171. Gaps mean no snapshot was taken that day.
Code and resources for Machine Learning for Algorithmic Trading.
Similar tools
Goldman Sachs Python toolkit for derivatives and risk
scikit-learn compatible Python library for portfolio optimization
CVXPY-based portfolio optimization and strategic asset allocation
Portfolio and risk analytics, a maintained fork of pyfolio
Python library for pricing and risk-managing financial derivatives
Performance analytics, backtesting and factsheet reporting in Python