Downloads ยท 30 days
0
amitbitan/nyc-marathon-predictor
nyc-marathon-predictor is a machine learning model from amitbitan. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads ยท 30 days
0
Access
Public
Updated May 9, 2026
Repo size
86.2 MB
Likes
0
Public
Click a slice to open those files.
.pkl86.2 MB ยท 94%
From the Hugging Face model README
๐ฅ Click here to watch the presentation
This project analyzes the NYC 2025 Marathon dataset from HuggingFace, containing 1.88 million rows of split times for every runner at every kilometer checkpoint.
Goal: Predict a runner's total finish time based on early race performance and demographic features.
Dataset: NYC 2025 Marathon Splits
| Model | MAE | Rยฒ |
|---|---|---|
| Baseline Linear Regression | 10.13 min | 0.946 |
| Linear Regression (Engineered) | 2.52 min | 0.996 |
| Random Forest โ | 1.37 min | 0.997 |
| XGBoost | 1.82 min | 0.997 |
| Random Forest (Tuned) ๐ | 0.03 min | 0.977 |
Classification Results (3 Classes: Fast / Average / Slow)
| Model | Accuracy |
|---|---|
| Logistic Regression ๐ | 99% |
| Random Forest | 98% |
| XGBoost | 98% |
Regression: Linear Regression, Random Forest, XGBoost + Hyperparameter Tuning
Classification: Logistic Regression, Random Forest, XGBoost
Pacing strategies by country, age vs pacing, and fastest countries
4 distinct runner groups identified: Fast, Mid-Pack Younger, Mid-Pack Older, and Slow Runners
first_half_speed (48.9%) and split_HALF (36.8%) are the strongest predictors
Random Forest achieved the lowest MAE of 1.37 minutes โ 87% improvement over baseline
Logistic Regression achieved 99% accuracy across all 3 classes
Perfectly balanced classes: Fast / Average / Slow (33.3% each)
random_forest_model.pkl - Best regression modellogistic_regression_classifier.pkl - Best classification modelnotebook.ipynb - Full analysis notebookpandas, numpy, scikit-learn, xgboost, matplotlib, seaborn, plotly, datasets