Welcome to the Customer Churn Prediction repository!
This project uses machine learning to predict customer churn based on user behavior and demographics. It includes data preprocessing, model training, evaluation metrics, and a deployed web app for real-time predictions. Great for exploring real-world applications of ML in business analytics.
- Real-world business use-case
- End-to-end ML pipeline (data preprocessing → model building → evaluation → web deployment)
- Clean, modular code & notebooks
- Web-based prediction interface (Flask/Streamlit)
- Suitable for portfolios and interviews
- Languages: Python, Jupyter Notebook, HTML, CSS, JavaScript
- Libraries & Frameworks: Pandas, NumPy, scikit-learn, XGBoost, imbalanced-learn (SMOTE), Matplotlib, Seaborn, Flask/Streamlit
- Deployment: Streamlit/Flask web app
-
Data Preprocessing
- Handling missing values
- Encoding categorical variables
- Feature scaling (StandardScaler)
- Addressing class imbalance (SMOTE)
-
Exploratory Data Analysis (EDA)
- Churn vs. Non-Churn distribution
- Correlation heatmap
- Feature importance & visual insights
-
Model Building
- Logistic Regression
- Decision Tree
- Random Forest
- XGBoost
-
Model Evaluation
- Confusion Matrix
- Accuracy, Precision, Recall, F1-Score
- ROC Curve and AUC
-
Web Application (Flask/Streamlit)
- Clean UI for inputting customer data
- Real-time churn prediction
- Suitable for deployment or demos
- Upload your dataset or use the provided sample.
- Run the notebook to preprocess data and train models.
- Evaluate models using provided metrics and plots.
- Enter customer data in the web app to get instant churn prediction.
- Achieved high accuracy and robust performance on test data.
- Visualizations provide business insights (feature importance, churn drivers).
- The web app allows non-technical users to interactively predict churn.
We welcome contributions!
Feel free to fork this repo, add new features, improve code quality, or build new models.
- Fork the repository
- Create a new branch (
git checkout -b feature-xyz) - Commit your changes
- Open a pull request
Let’s improve this together 🙌
This project is licensed under the MIT License.
For questions or collaborations: PratikshaNR
Suitable for portfolios and interviews
📢 Contributions Feel free to fork this repo, add new features, improve code quality, or build new models. Pull requests are welcome! Let’s improve this together 🙌