sevvaliclal commited on
Commit
728d648
·
verified ·
1 Parent(s): f9f5174

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -67
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- title: Binary Classification with a Bank Churn Dataset
3
  emoji: 🚀
4
- colorFrom: indigo
5
- colorTo: indigo
6
  sdk: streamlit
7
  app_file: src/app.py
8
  sdk_version: 1.54.0
@@ -10,97 +10,72 @@ pinned: false
10
  license: mit
11
  ---
12
 
13
- # Customer Churn Prediction
14
 
15
- An end-to-end machine learning project for predicting **customer churn** using structured banking data.
16
- The project covers the full pipeline from data analysis to model deployment readiness.
17
 
18
- ---
19
-
20
- ## 📌 Project Overview
21
-
22
- The goal of this project is to predict whether a customer will leave the bank (`Exited = 1`) based on
23
- demographic, financial, and behavioral features.
24
 
25
- The main focus is:
26
- - Robust feature engineering
27
- - Model comparison using multiple algorithms
28
- - ROC-AUC–based evaluation for imbalanced data
29
- - Cross-validation and hyperparameter tuning
30
- - Saving the final model for inference and deployment
31
 
32
  ---
33
 
34
- ## 📊 Dataset
35
 
36
- - Rows: **165,034**
37
- - Target: `Exited` (binary classification)
38
- - No missing values
39
- - Categorical features encoded
40
- - Multiple engineered behavioral features added
 
 
41
 
42
  ---
43
 
44
- ## ⚙️ Feature Engineering
45
 
46
- Key engineered features include:
47
- - Balance usage indicator (`HasBalance`)
48
- - Balance per product ratio
49
- - Age and credit score segmentation
50
- - Activity × product interaction score
51
- - Tenure and salary-based ratios
52
 
53
- Identifier columns (`id`, `CustomerId`, `Surname`) were removed to avoid noise.
54
 
55
  ---
56
 
57
- ## 🤖 Models Trained
58
-
59
- The following models were evaluated:
60
-
61
- - Logistic Regression
62
- - Decision Tree
63
- - Random Forest
64
- - Gradient Boosting
65
- - AdaBoost
66
- - LightGBM
67
- - XGBoost
68
- - CatBoost
69
 
70
- All models were evaluated using **ROC-AUC** as the primary metric.
 
 
 
71
 
72
  ---
73
 
74
- ## 🏆 Model Performance (ROC-AUC)
75
 
76
- | Model | ROC-AUC |
77
- |------|--------|
78
- | CatBoost | 0.8898 |
79
- | LightGBM | 0.8896 |
80
- | XGBoost | 0.8893 |
81
- | Gradient Boosting | 0.8881 |
82
- | AdaBoost | 0.8767 |
83
- | Random Forest | 0.8750 |
84
- | Logistic Regression | 0.8180 |
85
 
86
  ---
87
 
88
- ## 🔁 Validation & Tuning
89
 
90
- - **Stratified K-Fold Cross Validation**
91
- - **RandomizedSearchCV** for hyperparameter tuning
92
- - Class imbalance handled using class weights
93
- - Final model trained with optimal hyperparameters
94
 
95
  ---
96
 
97
- ## 🚀 Deployment
98
 
99
- The trained model is saved and can be used for inference via:
 
 
 
 
 
100
  - Streamlit
101
- - Hugging Face Spaces
102
- - Any Python-based backend
103
 
104
- To run the Streamlit app locally:
105
- ```bash
106
- streamlit run app.py
 
 
 
 
1
  ---
2
+ title: 🐎 Horse Health Outcome Prediction App
3
  emoji: 🚀
4
+ colorFrom: yellow
5
+ colorTo: yellow
6
  sdk: streamlit
7
  app_file: src/app.py
8
  sdk_version: 1.54.0
 
10
  license: mit
11
  ---
12
 
13
+ # 🐎 Horse Health Outcome Prediction
14
 
15
+ Machine Learning project based on Kaggle Playground Series (S3E22).
 
16
 
17
+ ## 📌 Problem
18
+ Predict horse health outcomes using medical indicators.
 
 
 
 
19
 
20
+ Evaluation Metric: **Micro F1 Score**
 
 
 
 
 
21
 
22
  ---
23
 
24
+ ## 🧠 Project Workflow
25
 
26
+ - Data Cleaning
27
+ - Missing Value Handling
28
+ - Feature Engineering
29
+ - Model Comparison
30
+ - Hyperparameter Tuning (LightGBM)
31
+ - Feature Importance Analysis
32
+ - Model Deployment Ready
33
 
34
  ---
35
 
36
+ ## 🏆 Best Model
37
 
38
+ **LightGBM Classifier**
 
 
 
 
 
39
 
40
+ Optimized using RandomizedSearchCV.
41
 
42
  ---
43
 
44
+ ## 📊 Model Performance
 
 
 
 
 
 
 
 
 
 
 
45
 
46
+ | Metric | Score |
47
+ |--------|-------|
48
+ | Micro F1 | ~0.70+ |
49
+ | ROC-AUC (OVR) | ~0.84 |
50
 
51
  ---
52
 
53
+ ## 💾 Saved Artifacts
54
 
55
+ - `final_model.pkl` → trained model
56
+ - `model_features.pkl` → feature list
 
 
 
 
 
 
 
57
 
58
  ---
59
 
60
+ ## 🚀 Deployment
61
 
62
+ The model is deployed using **Streamlit (HuggingFace Spaces ready)**.
 
 
 
63
 
64
  ---
65
 
66
+ ## 📦 Tech Stack
67
 
68
+ - Python
69
+ - Pandas
70
+ - Scikit-learn
71
+ - LightGBM
72
+ - XGBoost
73
+ - CatBoost
74
  - Streamlit
 
 
75
 
76
+ ---
77
+
78
+ ## 📖 Citation
79
+
80
+ Kaggle Playground Series - S3E22
81
+ Predict Health Outcomes of Horses