An open-source Python package that ingests Al Kamel Systems timing data and runs a full ML pipeline across four car classes. The dashboard covers pace predictions, pit probability curves, SHAP feature importance, undercut analysis, and a strategy advisor built on association rules.
Architecture
From raw Al Kamel CSV to trained models in a single reproducible script. Every stage is tested and structured as an importable Python package.
01
Ingestion
Fetch & cache Al Kamel CSVs
02
Cleaning
Lap time parsing, in/out laps
03
Analysis
Outliers, traffic, stints
04
Features
Stint age, rolling pace, class delta
05
Training
GroupKFold CV + model persistence
ML Models
Both evaluated with leave-one-race-out GroupKFold cross-validation to prevent race-level data leakage.
A module-level FORBIDDEN set blocks future-knowledge columns from entering the feature matrix. Validated at training time, not just documented.
All laps from a given race stay in the same fold. Tests genuine generalisation to an unseen event, not interpolation within a race weekend.
Fitted pipelines saved with joblib alongside a JSON sidecar recording training sessions, CV scores, feature columns, and sklearn version.
TreeExplainer on both models. Global importance bar chart and a per-lap waterfall for the worst pace deviation or highest pit call in the session.
Detects the first strategic pit sequence between two cars, skips safety car stops, and classifies whether the undercut gained position.
Describe the current race window and get a pit probability estimate from historical 15-min transactions, backed by association rule evidence.
Interactive Demo
Select a race, filter by class, and pick a car to explore pace residuals, pit probability, degradation, undercut analysis, and more.
UK · 2018
Silverstone
6 Hours
Japan · 2018
Fuji Speedway
6 Hours
China · 2018
Shanghai
6 Hours
USA · 2019
Sebring
8 Hours
Belgium · 2019
Spa-Francorchamps
6 Hours
France · 2019
Le Mans
24 Hours
UK · 2019
Silverstone
4 Hours
Japan · 2019
Fuji Speedway
6 Hours
China · 2019
Shanghai
4 Hours
Bahrain · 2019
Bahrain
8 Hours
USA · 2020
COTA
6 Hours
Belgium · 2020
Spa-Francorchamps
6 Hours
France · 2020
Le Mans
24 Hours
Bahrain · 2020
Bahrain
8 Hours
Hosted on Render. Kept alive with UptimeRobot.