Spaces:
Sleeping
Sleeping
File size: 1,297 Bytes
863da02 a20d308 1c298d5 863da02 a20d308 863da02 a20d308 863da02 267aed6 | 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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | ---
title: InsuranceChargesPrediction
emoji: 🩺
colorFrom: blue
colorTo: green
sdk: docker
app_port: 8501
tags:
- streamlit
pinned: false
short_description: Predicts medical insurance charges using a Gradient Boosting
license: mit
---
# 🩺 Insurance Charges Predictor
This app predicts **medical insurance charges** using a trained **Gradient Boosting regression model**.
The user can enter basic personal information, and the app will estimate the expected insurance cost.
---
## 🔍 What the App Does
- Predicts medical insurance charges
- Uses a machine learning regression model
- Shows fast and simple predictions
---
## 📊 Input Features
The model uses the following inputs:
- **Age**
- **Sex**
- **BMI (Body Mass Index)**
- **Number of Children**
- **Smoker (Yes / No)**
- **Region**
---
## 📈 Output
- Estimated insurance charges
---
## 🧠 Model Information
- Model: **Gradient Boosting Regressor**
- Type: Regression
- Trained on an insurance dataset
- Smoking, BMI, and age are the most important features
---
## 📁 Project Files
- `app.py` – Streamlit application
- `gb_model.pkl` – Trained model
- `requirements.txt` – Required Python packages
---
## ▶️ Run the App Locally
```bash
pip install -r requirements.txt
streamlit run app.py |