A deep learning tool that predicts NBA player statistics using historical data. The model analyzes player career trajectories to forecast future performance on a season-by-season basis.
nba-stats-predictor/
├── data/ # Generated data files
│ ├── nba_player_stats_*.csv # Historical player statistics
│ ├── predicted_*_season.csv # Model predictions
│ └── ...
├── scraper.ipynb # Web scraping notebook
├── trainer.ipynb # Model training notebook
├── guesser.ipynb # Prediction interface
├── nba_stats_predictor_model.keras # Saved model (generated)
└── normalization_params.json # Model parameters (generated)
scraper.ipynb):
trainer.ipynb):
guesser.ipynb):
git clone https://github.com/srhn45/nba-stats-predictor.git
cd nba-stats-predictor
pip install tensorflow pandas numpy sklearn
scraper.ipynb to collect datatrainer.ipynb to train the modelFinally guesser.ipynb to make predictions
guesser.ipynb directly with the provided data if not looking to make changesThe following files are generated through the notebooks:
data/nba_player_stats_*.csv: Contains scraped NBA statisticsdata/predicted_*_season.csv: Contains model predictionsnba_stats_predictor_model.keras: Trained model filenormalization_params.json: Model normalization parametersNote: All generated files can be recreated by running the notebooks in sequence.
Expand to team-level predictions
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.