stroke-prediction / README.md
attiquers's picture
Update README.md
eff7710 verified
---
tags:
- health
- stroke-risk
- machine-learning
- gradio
library_name: gradio
license: mit
widget:
- type: gradio
src: app.py
---
# Stroke Risk Prediction Model πŸš‘
This model predicts the stroke risk percentage based on user symptoms using a trained linear regression model.
## πŸ“Œ Features:
- βœ… Takes 16 symptoms as input (Checkbox selection)
- βœ… Returns a stroke risk percentage
- βœ… Deployed using Gradio on Hugging Face Spaces
## πŸ”§ How It Works:
1. User selects relevant symptoms.
2. The input is normalized based on precomputed dataset statistics.
3. The trained model (`theta_final.npy`) predicts the stroke risk.
## πŸš€ Try it Live:
[![Hugging Face Space](https://img.shields.io/badge/HuggingFace-Space-blue)](https://huggingface.co/attiquers)
## πŸ“‚ Files:
- `app.py`: Gradio interface and model inference.
- `theta_final.npy`: Trained model parameters.
- `requirements.txt`: Dependencies.
## πŸ›  Installation (Local Testing):
```bash
pip install gradio numpy
python app.py