Data and modelling
I built the data pipeline from collecting match recordings to training-ready features. Selenium scrapes HLTV for professional matches; the pipeline downloads and unpacks the demos, parses them with demoparser2, and cleans and transforms the game states with pandas and PyArrow. Recordings of 9,196 maps produced 16.8 million observations stored in Parquet. I compared nine models, including logistic regression, random forests and gradient boosting.
Validation and interpretation
Validation keeps observations from the same match together and tests on later quarters. XGBoost reached ROC-AUC 0.81–0.82 in quarterly walk-forward tests from Q3 2024 onward. Bootstrap tests, feature ablations and SHAP examine the models’ behaviour. I assessed probability calibration separately; the production XGBoost model has ECE 0.009.
