Downloads · 30 days
0
SebastianAndreu/2025-24679-NFL-Yards-Predictor
2025-24679-NFL-Yards-Predictor is a machine learning model from SebastianAndreu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model performs walk-forward training and evaluation for predicting NFL wide receiver (WR) receiving yards on a week-by-week basis using AutoGluon’s TabularPredictor. It leverages historical player embeddings, pre…
Downloads · 30 days
0
Access
Public
Updated Oct 30, 2025
Repo size
102 MB
Likes
0
Public
Click a slice to open those files.
.pkl5 MB · 45%
From the Hugging Face model README
This model performs walk-forward training and evaluation for predicting NFL wide receiver (WR) receiving yards on a week-by-week basis using AutoGluon’s TabularPredictor. It leverages historical player embeddings, pregame contextual features, and weather/game metadata to iteratively train and test within each NFL season (2016–2025).
Model Type: Walk-forward regression (AutoGluon TabularPredictor) Framework: AutoGluon Tabular Author: Sebastian Andreu License: MIT Primary Use: Predicting receiving_yards for each wide receiver before a game is played.
Instead of training one global model, this script re-trains weekly within each season, always using all prior weeks as training data and the next week as the test set. This ensures realistic forward-looking performance without data leakage.
The model loads and concatenates season datasets from:
SebastianAndreu/24679_NFL_WR_Dataset_<YEAR>
for 2016 ≤ YEAR ≤ 2025.
Each dataset includes pregame features such as weather, team matchup, and Vegas lines.
Pregame input variables:
defteamposteamsurfaceis_domeis_rainis_snowis_cleartemp_fhumidity_pctwind_mphhome_teamaway_teampregame_spreadpregame_totalpasser_player_idreceiver_player_idThe dataset is also merged with player_historical_embeddings.csv, which provides dense numerical representations of player histories.
receiving_yards — the number of receiving yards gained by the WR in the upcoming game.
For each season:
Extract the total number of weeks in that season.
For each week W starting from 2:
< W.W.Collect predictions and evaluation metrics.
TabularPredictor(
label="receiving_yards",
path=model_dir,
verbosity=0
).fit(
train_data=train[features + [target]],
time_limit=600,
presets="medium_quality_faster_train"
)
Time Limit: 600 seconds per week
Preset: medium_quality_faster_train
Verbosity: 0 (minimal logging)
The model computes Mean Absolute Error (MAE) over all weekly predictions.
After all walk-forward runs:
walkforward_predictions.csv — contains true vs. predicted values per week.
Columns:
seasonweektrueprederror = |true - pred|Example final output:
✅ Walk-forward complete!
Total predictions: 3,200
Mean Absolute Error: 12.47
📥 Saved: walkforward_predictions.csv
| Artifact | Description |
|---|---|
player_historical_embeddings.csv | Precomputed player embeddings |
autogluon_walkforward/ | Directory of trained weekly models |
walkforward_predictions.csv | Aggregated results of predictions |
SebastianAndreu/24679_NFL_WR_Dataset_<YEAR> | Input datasets (2016–2025) |
Goal: Predict individual WR performance before each NFL game. Primary Users: Sports analytics researchers, fantasy football data scientists, and betting modelers. Not intended for: Real-time in-game prediction or commercial wagering advice.
player_historical_embeddings.csv).