Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Stroke Risk Prediction Model π
|
| 2 |
+
|
| 3 |
+
This model predicts the stroke risk percentage based on user symptoms using a trained linear regression model.
|
| 4 |
+
|
| 5 |
+
## π Features:
|
| 6 |
+
- β
Takes 16 symptoms as input (Checkbox selection)
|
| 7 |
+
- β
Returns a stroke risk percentage
|
| 8 |
+
- β
Deployed using Gradio on Hugging Face Spaces
|
| 9 |
+
|
| 10 |
+
## π§ How It Works:
|
| 11 |
+
1. User selects relevant symptoms.
|
| 12 |
+
2. The input is normalized based on precomputed dataset statistics.
|
| 13 |
+
3. The trained model (`theta_final.npy`) predicts the stroke risk.
|
| 14 |
+
|
| 15 |
+
## π Try it Live:
|
| 16 |
+
[](https://huggingface.co/spaces/your-space-name)
|
| 17 |
+
|
| 18 |
+
## π Files:
|
| 19 |
+
- `app.py`: Gradio interface and model inference.
|
| 20 |
+
- `theta_final.npy`: Trained model parameters.
|
| 21 |
+
- `requirements.txt`: Dependencies.
|
| 22 |
+
|
| 23 |
+
## π Installation (Local Testing):
|
| 24 |
+
```bash
|
| 25 |
+
pip install gradio numpy
|
| 26 |
+
python app.py
|