Skip to content

gurram46/Customer-Churn-Prediction-Using-Machine-Learning

Repository files navigation

Customer-Churn-Prediction-Using-Machine-Learning

Project Overview

This project aims to predict customer churn for a telecommunications company using various machine learning algorithms. Churn prediction helps businesses identify customers who are likely to leave the service, enabling them to take proactive measures to retain them.

Table of Contents

Dataset

The dataset used in this project is from IBM and includes various features that help in predicting customer churn. The dataset is divided into training and test sets for model training and evaluation.

Installation

To run this project, ensure you have the following libraries installed:

  • pandas
  • numpy
  • scikit-learn
  • xgboost
  • lightgbm
  • matplotlib

Data Preprocessing

The data preprocessing steps include:

  • Handling missing values
  • Encoding categorical variables
  • Splitting the data into training and test sets

Model Training

We trained four machine learning models:

  • Logistic Regression
  • Random Forest
  • XGBoost
  • LightGBM

Hyperparameter Tuning

Hyperparameter tuning was performed using GridSearchCV to optimize model performance.

Model Evaluation

The models were evaluated using metrics such as accuracy, precision, recall, and F1 score. Additionally, ROC curves were plotted to compare the performance of the models.

Results

The Logistic Regression model achieved the best overall performance. The ROC curves for the models provided a visual comparison of their ability to distinguish between churned and non-churned customers.

Conclusion

This project successfully built and evaluated multiple machine learning models to predict customer churn. The Logistic Regression model provided the best balance between precision and recall, making it a reliable choice for deployment in real-world applications.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published