Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Grade Predictor (Regression)
|
| 2 |
+
|
| 3 |
+
Trained from dataset: **DetectiveShadow/Grade_Data**
|
| 4 |
+
|
| 5 |
+
**Best model:** RandomForestRegressor
|
| 6 |
+
**Metrics:** R² = 0.131 • RMSE = 10.10 • MAE = 7.98
|
| 7 |
+
|
| 8 |
+
## Expected Features
|
| 9 |
+
- Numeric: ['grade_level', 'attendance', 'hours_studied', 'quizzes_avg', 'confidence']
|
| 10 |
+
- Categorical: ['subject', 'course_difficulty', 'group_or_solo']
|
| 11 |
+
- Target: final_grade
|
| 12 |
+
|
| 13 |
+
## Quick Start
|
| 14 |
+
```python
|
| 15 |
+
from huggingface_hub import hf_hub_download
|
| 16 |
+
import joblib, pandas as pd
|
| 17 |
+
|
| 18 |
+
pipe = joblib.load(hf_hub_download("DetectiveShadow/Grade_predictor", "grade_predictor.pkl"))
|
| 19 |
+
sample = pd.DataFrame([{
|
| 20 |
+
"attendance": 0.95,
|
| 21 |
+
"hours_studied": 12,
|
| 22 |
+
"quizzes_avg": 85,
|
| 23 |
+
"confidence": 7,
|
| 24 |
+
"grade_level": 11,
|
| 25 |
+
"subject": "Math",
|
| 26 |
+
"course_difficulty": "Honors",
|
| 27 |
+
"group_or_solo": "Solo"
|
| 28 |
+
}])
|
| 29 |
+
print("Predicted final grade:", pipe.predict(sample)[0])
|
| 30 |
+
```
|