Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# 🏀 NBA Player Performance Predictor (Assignment #2)
|
| 6 |
+
|
| 7 |
+
## 🎥 Project Presentation
|
| 8 |
+
## Attached video in HG
|
| 9 |
+
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## 📌 Overview
|
| 13 |
+
This project analyzes NBA player data (1950-2017) to predict player performance based solely on physical attributes (Height, Weight, Age).
|
| 14 |
+
* **Goal 1 (Regression):** Predict exact points scored per season.
|
| 15 |
+
* **Goal 2 (Classification):** Classify players as "High Scorers" vs. "Low Scorers."
|
| 16 |
+
|
| 17 |
+
## 🔧 Feature Engineering
|
| 18 |
+
We engineered several features to improve model performance:
|
| 19 |
+
* **Clustering:** Used K-Means to identify 5 distinct body types (e.g., "Small Guard" vs. "Heavy Center").
|
| 20 |
+
* **Scaling:** Standardized Height and Weight to compare players fairly.
|
| 21 |
+
* **Encoding:** Converted player positions into numeric data.
|
| 22 |
+
|
| 23 |
+
## 🏆 Model Results
|
| 24 |
+
|
| 25 |
+
### Part 1: Regression (Predicting Points)
|
| 26 |
+
* **Winner:** Gradient Boosting Regressor
|
| 27 |
+
* **R² Score:** 0.075
|
| 28 |
+
* **Insight:** Physical attributes alone are weak predictors of exact scoring numbers.
|
| 29 |
+
|
| 30 |
+
### Part 2: Classification (High vs. Low Scorer)
|
| 31 |
+
* **Winner:** Support Vector Machine (SVM)
|
| 32 |
+
* **Recall:** 64%
|
| 33 |
+
* **Insight:** The SVM model was the best at identifying "Hidden Gems" (High Recall), minimizing the chance of missing out on talent.
|
| 34 |
+
|
| 35 |
+
## 📂 Files Included
|
| 36 |
+
* `winning_model.pkl`: The trained Gradient Boosting Regressor.
|
| 37 |
+
* `winning_classifier.pkl`: The trained SVM Classifier.
|
| 38 |
+
* `My_Notebook.ipynb`: The complete Python code for this analysis.
|