NY Sports Attendance Predictor

An interactive Machine Learning tool predicting home game attendance based on weather, form, and rivalries.

About this Project

This tool predicts home game attendance for 8 NY-area professional sports teams using machine learning. It pulls game results and attendance from the ESPN API, Baseball Reference, and American Soccer Analysis, matching historical weather to each venue via Open-Meteo.

The core model is a Gradient Boosting Regressor trained on normalized fill rates, with COVID-era seasons excluded. It features leave-one-out feature contributions to explain which factors drive each prediction above or below the historical average.

I built this entire project—from the data pipelines and machine learning model to the interactive Streamlit deployment—in just a few hours by effectively leveraging Claude Code.

Open Full Page View on GitHub