Own product, machine learning
ML forecasting system with calibrated probabilities
- Period:
- since 06/2026
- Role:
- ML developer
- Python 3.13
- LightGBM
- scikit-learn
- pandas
- FastAPI
- PostgreSQL
- React
- TypeScript
- Docker

A machine learning system that forecasts horse race outcomes as calibrated probabilities and is measured against a highly efficient market. This page describes method and technology. It contains no betting advice and no claims of profit; it runs as paper trading only, without real money.
Starting point
Horse racing betting markets are highly efficient: the closing odds contain practically all public information. A model is only worth something if its probabilities are honestly calibrated and it holds up measurably against the market. That is the benchmark, not a good-looking backtest.
Solution
- Two-stage model: stage 1 is a LightGBM model on fundamental data only, such as form, going, distance, weight, jockey and trainer, without market odds
- Softmax normalisation per race so the probabilities of all runners sum to 1, followed by isotonic calibration
- Stage 2 combines this probability with the early market odds; stage 1 is also evaluated on its own
Method and metrics
- Strict walk-forward backtest: training only on the past, every feature point-in-time correct, data leakage excluded
- The main metric is closing line value against the later tradable closing odds, plus Brier score and log loss for calibration and a null model as baseline
- Realistic exchange commission in the backtest
- Stop criterion set in advance: if a robust sample shows no significantly positive closing line value, the method in this form counts as refuted
Technology
- Data pipeline with deterministic matching of two data sources
- Paper trading engine with a ledger
- FastAPI backend with OAuth2 (JWT, Argon2id), dashboard in React 19 and TypeScript
Status
As of 12/2026: 18 development tasks delivered in three days through Codixio Hub and Auto-Loop and put into operation on Coolify. Paper trading only.