Skip to content

LJitendra05/Customer_churn_prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

📉 Customer Churn Prediction

Customer Churn Prediction is a Machine Learning project that predicts whether a customer is likely to leave a service (churn) or continue using it.
This project involves data preprocessing, exploratory data analysis (EDA), model building, and performance evaluation.


📌 Project Overview

Customer churn is one of the major challenges faced by businesses such as telecom companies, banks, and subscription-based services.

Predicting customer churn helps organizations to:

  • Improve customer retention
  • Reduce revenue loss
  • Identify high-risk customers
  • Enhance customer satisfaction
  • Make data-driven business decisions

This project uses machine learning algorithms to analyze customer data and predict churn behavior.


🛠️ Technologies Used

  • Python
  • Pandas
  • NumPy
  • Scikit-learn
  • Matplotlib
  • Seaborn
  • TensorFlow

📂 Project Structure

Customer_Churn_Prediction/
│
├── Customer_churn_prediction.ipynb   # Main implementation file
├── Churn.csv                         # Dataset used
└── README.md                         # Project documentation

📊 Dataset Description

The dataset contains customer-related information such as:

  • Customer demographics
  • Account information
  • Services subscribed
  • Monthly charges
  • Contract type
  • Tenure
  • Payment method

Target Variable:

  • Churn
    • 1 → Customer leaves the service
    • 0 → Customer stays

🧹 Data Preprocessing

The following steps are applied:

  • Handling missing values
  • Encoding categorical variables
  • Feature scaling
  • Train-Test splitting

🧠 Machine Learning Models Used

The project uses classification algorithms such as:

  • Logistic Regression
  • Decision Tree
  • Random Forest
  • Neural Network (TensorFlow)

📊 Model Evaluation Metrics

Model performance is evaluated using:

  • Accuracy Score
  • Confusion Matrix
  • Precision
  • Recall
  • F1-Score

▶️ How to Run the Project

Step 1: Clone the Repository

git clone https://github.com/your-username/Customer_Churn_Prediction.git
cd Customer_Churn_Prediction

Step 2: Install Required Libraries

pip install pandas numpy scikit-learn matplotlib seaborn tensorflow

Step 3: Open Jupyter Notebook

jupyter notebook

Open:

Customer_churn_prediction.ipynb

Run all the cells to preprocess the data, train the model, and evaluate performance.


📈 Output

The trained model predicts whether a customer will:

  • Stay with the service
  • Leave the service (Churn)

🔮 Future Enhancements

  • Deep Learning optimization
  • Web application using Streamlit
  • Real-time churn prediction system
  • Deployment on cloud platform

📄 License

This project is developed for educational purposes.


Developed by:L Jitendra Kumar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors