File size: 813 Bytes
9cab9ab
076c2bf
9cab9ab
 
076c2bf
9cab9ab
a244ac5
9cab9ab
 
 
076c2bf
a244ac5
076c2bf
a244ac5
076c2bf
a244ac5
076c2bf
 
 
a244ac5
076c2bf
a244ac5
076c2bf
 
 
 
 
 
 
 
 
 
a244ac5
076c2bf
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: Math Score ML Project
emoji: πŸ“Š
colorFrom: blue
colorTo: purple
sdk: docker
app_file: app.py
pinned: false
---

# Math Score Predictor

A machine learning project to predict math scores based on student attributes and test preparation.

## Features

- Predicts math scores using reading and writing scores plus student demographics
- Built with Flask and scikit-learn
- Docker containerized for easy deployment

## How to Run Locally

```bash
pip install -r requirements.txt
python app.py
```

Then visit `http://localhost:7860`

## API Usage

Send a POST request to `/predict` with JSON data:

```json
{
  "gender": "male",
  "race": "group A",
  "parental_education": "some high school",
  "lunch": "standard",
  "test_preparation_course": "none",
  "reading_score": 72,
  "writing_score": 74
}
```