Start Here
August 9, 2026 ยท View on GitHub
This page is the fastest path from discovering the repository to running something useful.
1. Pick Your Path
| If you are... | Start with |
|---|---|
| New to the project | pip install mlquantx && mlquant demo |
| A quant researcher | notebooks/public_factor_ic.ipynb |
| An ML engineer | make benchmark |
| Ready to customize | Clone the repository and install -e '.[dev]' |
| A contributor | Submit a reproduction report or choose a good first issue |
| A paper reader | docs/reproducing_paper.md |
2. Run the Small Pipeline
python -m pip install mlquantx
mlquant demo
Expected local runtime:
- CPU-only laptop: about 30-90 seconds after dependencies are installed.
- Memory: the small config is designed for ordinary laptops and CI runners.
- GPU: not required for the quick start.
This runs the synthetic-data pipeline end to end:
- generate a masked OHLCV panel
- compute factor features
- train a model
- build a portfolio
- run a backtest
Expected artifact directories:
artifacts/small/
data/processed/
If the command succeeds, you should see each pipeline stage finish without a traceback. The exact metric values can vary across Python, PyTorch, BLAS, and solver versions, so the quick-start check is "the full pipeline completes" rather than "the final number is identical on every machine."
Typical successful output includes lines like:
wrote artifacts/small/panel.pt (500 dates x 200 stocks)
wrote features: torch.Size([500, 200, 213])
wrote predictions: torch.Size([500, 200])
wrote weights: (500, 200)
Backtest summary
During the portfolio step, cvxpy or scipy may print numerical warnings on some
machines. Treat them as warnings unless the command exits with an error or the final
Backtest summary is missing.
When the packaged demo works and you are ready to change the research pipeline:
git clone https://github.com/initial-d/ml-quant-trading.git
cd ml-quant-trading
python -m pip install -e '.[dev]'
The generated summary.md and summary.json include the repository and
reproduction report
links so successful and failed runs can become useful community evidence.
3. Try a Public-Data Notebook
Before interpreting any result, skim the Research Card. It explains the intended use, non-goals, data assumptions, and current validation status in one place.
Open:
notebooks/public_factor_ic.ipynb
The notebook uses public data when available and falls back to a synthetic panel so the workflow remains runnable.
For a fixed public-data reference run, see:
docs/public_data_mini_reproduction.md
That note records the ticker universe, date range, factor subset, and expected one-day rank IC summary from the maintainer run.
4. Use A Reproducible Container
If you use VS Code or GitHub Codespaces, open the repository in the included Dev Container:
.devcontainer/devcontainer.json
The container installs Python 3.11 and runs:
python -m pip install -e '.[dev]'
This is the most reproducible path for first-time contributors who do not want to debug local Python environments.
5. Submit a Useful First Contribution
The fastest useful contributions are:
- run
make benchmarkand submit the result - report whether the public-data notebook worked for you
- add one caveat or assumption to the docs
- improve a factor-family explanation
- add one small test for an edge case
Good current entry points:
- Collect community CPU/GPU benchmark results
- Submit a structured Colab or local reproduction report
- Join the August 2026 reproduction challenge
- Pair on a public-data validation or benchmark contribution
6. What Not to Expect
This project is not:
- a live trading bot
- financial advice
- a source of proprietary market data
- a guarantee that historical backtests will generalize
It is a research and engineering baseline for factor computation, model training, portfolio construction, and backtesting.