A Machine Learning web application that predicts whether a telecom customer is likely to churn using behavioral and service usage data.
The model was trained using XGBoost and deployed as an interactive Streamlit dashboard.
Customer churn is a major issue for telecom companies. Retaining existing customers is significantly cheaper than acquiring new ones.
This project predicts the probability of a customer leaving the service based on their profile and service usage.
- Data Cleaning and Preprocessing
- Feature Engineering
- Encoding Categorical Variables
- Model Training (XGBoost)
- Cross Validation
- Model Export using Joblib
- Deployment using Streamlit
Accuracy: ~80%
Cross Validation Score: ~0.80
- Gender
- Senior Citizen
- Partner
- Dependents
- Tenure
- Monthly Charges
- Total Charges
- Contract Type
- Internet Service
- Payment Method
- Paperless Billing
- Tech Support
- Online Security
- Streaming Movies
- Python
- Pandas
- Scikit-Learn
- XGBoost
- Streamlit
- Joblib
Clone the repository:
git clone https://github.com/yourusername/customer-churn-prediction.gitInstall dependencies:
pip install -r requirements.txtRun the application:
streamlit run app.pyFarhan Tanvir
Machine Learning Enthusiast
