Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,9 +12,107 @@ short_description: Predicts medical insurance charges using a Gradient Boosting
|
|
| 12 |
license: mit
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
license: mit
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Insurance Charges Predictor 🩺
|
| 16 |
|
| 17 |
+
This Streamlit app predicts **medical insurance charges** using a **Gradient Boosting Regression** model.
|
| 18 |
|
| 19 |
+
## Inputs
|
| 20 |
+
- age, sex, bmi, children, smoker, region
|
| 21 |
+
|
| 22 |
+
## Output
|
| 23 |
+
- predicted insurance charges
|
| 24 |
+
|
| 25 |
+
## Files
|
| 26 |
+
- `app.py` (Streamlit app)
|
| 27 |
+
- `gb_model.pkl` (trained model)
|
| 28 |
+
- `requirements.txt`
|
| 29 |
+
|
| 30 |
+
## Run locally
|
| 31 |
+
```bash
|
| 32 |
+
pip install -r requirements.txt
|
| 33 |
+
streamlit run app.py
|
| 34 |
+
Code kopieren
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
Du:
|
| 42 |
+
kannst du mir eine schöne readme auf simple englisch für huggingface erstellen?
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
ChatGPT:
|
| 46 |
+
Gerne 😊
|
| 47 |
+
Hier ist eine schöne, übersichtliche HuggingFace README in simplem Englisch, genau passend zu deinem Projekt.
|
| 48 |
+
Du kannst sie 1:1 als README.md verwenden.
|
| 49 |
+
|
| 50 |
+
markdown
|
| 51 |
+
Code kopieren
|
| 52 |
+
---
|
| 53 |
+
title: Insurance Charges Predictor
|
| 54 |
+
emoji: 🩺
|
| 55 |
+
colorFrom: blue
|
| 56 |
+
colorTo: green
|
| 57 |
+
sdk: streamlit
|
| 58 |
+
app_file: app.py
|
| 59 |
+
pinned: false
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
# 🩺 Insurance Charges Predictor
|
| 63 |
+
|
| 64 |
+
This app predicts **medical insurance charges** using a trained **Gradient Boosting regression model**.
|
| 65 |
+
|
| 66 |
+
The user can enter basic personal information, and the app will estimate the expected insurance cost.
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## 🔍 What the App Does
|
| 71 |
+
|
| 72 |
+
- Predicts medical insurance charges
|
| 73 |
+
- Uses a machine learning regression model
|
| 74 |
+
- Shows fast and simple predictions
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## 📊 Input Features
|
| 79 |
+
|
| 80 |
+
The model uses the following inputs:
|
| 81 |
+
|
| 82 |
+
- **Age**
|
| 83 |
+
- **Sex**
|
| 84 |
+
- **BMI (Body Mass Index)**
|
| 85 |
+
- **Number of Children**
|
| 86 |
+
- **Smoker (Yes / No)**
|
| 87 |
+
- **Region**
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## 📈 Output
|
| 92 |
+
|
| 93 |
+
- Estimated insurance charges
|
| 94 |
+
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
## 🧠 Model Information
|
| 98 |
+
|
| 99 |
+
- Model: **Gradient Boosting Regressor**
|
| 100 |
+
- Type: Regression
|
| 101 |
+
- Trained on an insurance dataset
|
| 102 |
+
- Smoking, BMI, and age are the most important features
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
## 📁 Project Files
|
| 107 |
+
|
| 108 |
+
- `app.py` – Streamlit application
|
| 109 |
+
- `gb_model.pkl` – Trained model
|
| 110 |
+
- `requirements.txt` – Required Python packages
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
|
| 114 |
+
## ▶️ Run the App Locally
|
| 115 |
+
|
| 116 |
+
```bash
|
| 117 |
+
pip install -r requirements.txt
|
| 118 |
+
streamlit run app.py
|