Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🚀
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: pink
|
|
@@ -10,43 +10,76 @@ pinned: false
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
Predict the number of calories burned during a workout session.
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
---
|
| 23 |
|
| 24 |
-
##
|
|
|
|
|
|
|
| 25 |
- Sex
|
| 26 |
-
-
|
|
|
|
| 27 |
- Height
|
| 28 |
- Weight
|
| 29 |
-
-
|
| 30 |
-
-
|
| 31 |
-
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
---
|
| 35 |
|
| 36 |
-
##
|
| 37 |
-
|
| 38 |
-
- Feature Engineering
|
| 39 |
-
- One-Hot Encoding
|
| 40 |
-
- Model Comparison
|
| 41 |
-
- XGBoost Training
|
| 42 |
-
- Model Serialization with Joblib
|
| 43 |
|
| 44 |
---
|
| 45 |
|
| 46 |
-
##
|
| 47 |
-
**XGBoost Regressor**
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
---
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Crab Age Prediction App
|
| 3 |
emoji: 🚀
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: pink
|
|
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# 🦀 Crab Age Prediction - Regression Project
|
| 14 |
|
| 15 |
+
## 📌 Project Overview
|
| 16 |
+
This project was developed for the Kaggle competition:
|
| 17 |
|
| 18 |
+
**Playground Series - Season 3, Episode 16**
|
|
|
|
| 19 |
|
| 20 |
+
The objective is to predict the age of crabs using physical measurements.
|
| 21 |
|
| 22 |
---
|
| 23 |
|
| 24 |
+
## 📊 Dataset
|
| 25 |
+
Tabular dataset with the following features:
|
| 26 |
+
|
| 27 |
- Sex
|
| 28 |
+
- Length
|
| 29 |
+
- Diameter
|
| 30 |
- Height
|
| 31 |
- Weight
|
| 32 |
+
- Shucked Weight
|
| 33 |
+
- Viscera Weight
|
| 34 |
+
- Shell Weight
|
| 35 |
+
|
| 36 |
+
Additional engineered features:
|
| 37 |
+
- Volume
|
| 38 |
+
- Ratios (Meat, Shell, Viscera)
|
| 39 |
+
- Density
|
| 40 |
+
- Length/Diameter Ratio
|
| 41 |
|
| 42 |
---
|
| 43 |
|
| 44 |
+
## 🎯 Evaluation Metric
|
| 45 |
+
Mean Absolute Error (MAE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
---
|
| 48 |
|
| 49 |
+
## 🧠 Models Tested
|
|
|
|
| 50 |
|
| 51 |
+
- Linear Regression
|
| 52 |
+
- Ridge
|
| 53 |
+
- Lasso
|
| 54 |
+
- ElasticNet
|
| 55 |
+
- Decision Tree
|
| 56 |
+
- Gradient Boosting
|
| 57 |
+
- XGBoost
|
| 58 |
+
|
| 59 |
+
🏆 **Best Model: XGBoost**
|
| 60 |
|
| 61 |
---
|
| 62 |
|
| 63 |
+
## 💾 Saved Model
|
| 64 |
+
|
| 65 |
+
The final production model is saved as:
|
| 66 |
+
crab_age_model.pkl
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
It contains:
|
| 70 |
+
- Trained XGBoost model
|
| 71 |
+
- Feature names
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## 🚀 Deployment
|
| 76 |
+
|
| 77 |
+
This model is deployed using **Streamlit** on Hugging Face Spaces.
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## 📦 Installation
|
| 82 |
+
|
| 83 |
+
```bash
|
| 84 |
+
pip install -r requirements.txt
|
| 85 |
+
|