GithubHelp home page GithubHelp logo

omidsg / customerchurnprediction Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 258 KB

Ensemble Classification using Balanced Data to Predict Customer Churn: A Case Study on the Telecom Industry

License: MIT License

Jupyter Notebook 100.00%

customerchurnprediction's Introduction

Ensemble Classification using Balanced Data to Predict Customer Churn: A Case Study on the Telecom Industry

we use data mining classification methods, such as neural network, K-nearest neighbor, support vector machine, logistic regression, decision tree, and random forest. The results are analyzed using various criteria such as accuracy, precision, recall, F1-score, and ROC curve. The contribution of this project is to examine the performance of classifiers before and after data balancing. After determining the successful classifiers, we combine them with the AdaBoost and XGBoost methods.The most effective combinations are identified according to all evaluation criteria. Our results show that the use of a hybrid classifier with the help of AdaBoost and XGBoost significantly improves performance.

Prerequisites

  pip install tensorflow
  pip install pandas
  pip install numpy
  pip install seaborn
  • Now open file in the Jupyter Notebook

The topics investigated in this project

  • Data Preprocessing

for data preprocessing, the missing values and duplicate fields were first deleted.Some dataset features have Yes/No values.We converted the values of such features to 0/1.Another important preprocessing is for multi-value features.

  • Data Balancing

Data imbalance is one of the most common problems in classification. It occurs when the proportions of the samples belonging to the classes are significantly different from each other. For example, if 90% of the data belongs to the class of loyal customers (class 0) and 10% belongs to the class of churned customers (class 1), then the dataset is unbalanced. One general method for data balancing is oversampling. Replacement of minority class samples is used here. It does not require additional information and uses the existing data to balance the training set. One of the disadvantages of this method is the increase in the size of the training set, which leads to an increase in the learning time of the classifier.

  • Baseline Classification Methods

    • Neural Network
    • K-nearest Neighbors
    • Support Vector Machines
    • Logistic Regression
    • Decision Tree
    • Random Forest
    • AdaBoost
    • XGBoost
    • Ensemble learning
  • Analysis of results

    • Precision
    • Recall
    • Accuracy
    • F-measure
    • ROC Curve

Authors

Languages and Tools:

opencv pandas python scikit_learn seaborn tensorflow

customerchurnprediction's People

Contributors

omidsg avatar

Stargazers

 avatar Aref Kanaanpoor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.