File size: 1,011 Bytes
eff7710
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32b9530
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d255de4
32b9530
 
 
 
 
 
 
 
 
 
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
---
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