An advanced machine learning application that predicts customer churn probability using ensemble methods and provides personalized insights through an interactive Streamlit dashboard.

-
Multi-Model Prediction System
- Random Forest
- XGBoost
- K-Nearest Neighbors
- Ensemble Voting Classifier
-
Interactive Dashboard
- Real-time predictions
- Dynamic visualization
- Customer profile analysis
- Personalized recommendations
-
Advanced Analytics
- Probability gauges
- Feature importance analysis
- Model comparison charts
- AI-powered explanations
- Frontend: Streamlit
- Backend: Python 3.12
- ML Libraries:
- scikit-learn
- XGBoost
- pandas
- numpy
- API Integration: Groq API for AI explanations
- Data Visualization: Plotly
- Clone the repository
git clone https://github.com/yourusername/Customer_Churn.git
cd Customer_Churn- Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt- Set up environment variables
cp .env.example .env
# Add your GROQ_API_KEY to .env- Run the application
streamlit run main.py| Model | Accuracy | F1-Score | ROC AUC |
|---|---|---|---|
| XGBoost | 0.859 | 0.85 | 0.89 |
| Random Forest | 0.854 | 0.84 | 0.88 |
| KNN | 0.832 | 0.82 | 0.85 |
Customer_Churn/
├── main.py # Main Streamlit application
├── utils.py # Utility functions
├── models/ # Trained ML models
├── churn.csv # Dataset
├── requirements.txt # Project dependencies
└── README.md # Project documentation