Downloads · 30 days
3
8% of all-time downloads
arvindrangarajan/nba-performance-predictor
nba-performance-predictor is a machine learning model from arvindrangarajan. 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 predicts NBA player points per game (PPG) using XGBoost regression with time-series features. The model uses historical player statistics, lag features, and engineered metrics to make predictions.
Downloads · 30 days
3
8% of all-time downloads
All-time downloads
37
Public
Repo size
129 B
Likes
0
Public
Click a slice to open those files.
.json343 KB · 99%
From the Hugging Face model README
This model predicts NBA player points per game (PPG) using XGBoost regression with time-series features. The model uses historical player statistics, lag features, and engineered metrics to make predictions.
The model uses various features including:
from huggingface_model import NBAPerformancePredictorHF
# Load the model
model = NBAPerformancePredictorHF("path/to/model")
# Example prediction
player_stats = {
'Age': 27,
'G': 75,
'GS': 70,
'MP': 35.0,
'FG': 8.5,
'FGA': 18.0,
'FG_1': 0.472,
'Pos_encoded': 2,
'Team_encoded': 15,
'Age_category_encoded': 1,
'PTS_lag_1': 22.5,
'PTS_lag_2': 21.0,
'TRB_lag_1': 7.2,
'AST_lag_1': 4.8
}
predicted_points = model.predict(player_stats)
print(f"Predicted PPG: {predicted_points:.2f}")
The model was trained on NBA player statistics from multiple seasons, including:
This model is for educational and analytical purposes. It should not be used for:
@misc{nba_performance_predictor,
title={NBA Player Performance Predictor using XGBoost},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/your-username/nba-performance-predictor}}
}