Aryan
commited on
Commit
Β·
076c2bf
1
Parent(s):
851d0ce
added readme file
Browse files
README.md
CHANGED
|
@@ -1,35 +1,44 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
-
#
|
| 12 |
|
| 13 |
-
|
| 14 |
-
- Gender
|
| 15 |
-
- Race/Ethnicity
|
| 16 |
-
- Parental Education Level
|
| 17 |
-
- Lunch Type
|
| 18 |
-
- Test Preparation Course
|
| 19 |
-
- Reading Score
|
| 20 |
-
- Writing Score
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
-
##
|
| 29 |
-
- Flask (Backend)
|
| 30 |
-
- Scikit-learn (ML Model)
|
| 31 |
-
- Docker (Deployment)
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Math Score ML Project
|
| 3 |
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Math Score Predictor
|
| 12 |
|
| 13 |
+
A machine learning project to predict math scores based on student attributes and test preparation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
## Features
|
| 16 |
|
| 17 |
+
- Predicts math scores using reading and writing scores plus student demographics
|
| 18 |
+
- Built with Flask and scikit-learn
|
| 19 |
+
- Docker containerized for easy deployment
|
| 20 |
|
| 21 |
+
## How to Run Locally
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
```bash
|
| 24 |
+
pip install -r requirements.txt
|
| 25 |
+
python app.py
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Then visit `http://localhost:7860`
|
| 29 |
+
|
| 30 |
+
## API Usage
|
| 31 |
+
|
| 32 |
+
Send a POST request to `/predict` with JSON data:
|
| 33 |
|
| 34 |
+
```json
|
| 35 |
+
{
|
| 36 |
+
"gender": "male",
|
| 37 |
+
"race": "group A",
|
| 38 |
+
"parental_education": "some high school",
|
| 39 |
+
"lunch": "standard",
|
| 40 |
+
"test_preparation_course": "none",
|
| 41 |
+
"reading_score": 72,
|
| 42 |
+
"writing_score": 74
|
| 43 |
+
}
|
| 44 |
+
```
|