Giter Site home page Giter Site logo

jimschacko / churn-modelling-using-xgboost Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.03 MB

Churn Modelling using XGBoost

Jupyter Notebook 100.00%
churn-analysis churn-modeling churn-modelling churn-prediction classification data-science machine-learning scikit-learn xgboost xgboost-algorithm xgboost-classifier xgboost-model

churn-modelling-using-xgboost's Introduction

Churn-Modelling-using-XGBoost

Objective

Can you develop a model of machine learning that can predict customers who will leave the company? The aim is to estimate whether a bank's customers leave the bank or not. The event that defines the customer abandonment is the closing of the customer's bank account. Details about the dataset: It consists of 10000 observations and 12 variables. Independent variables contain information about customers. Dependent variable refers to customer abandonment status.

Variables:

RowNumber — corresponds to the record (row) number and has no effect on the output. This column will be removed. CustomerId — contains random values and has no effect on customer leaving the bank. This column will be removed. Surname — the surname of a customer has no impact on their decision to leave the bank. This column will be removed. CreditScore — can have an effect on customer churn, since a customer with a higher credit score is less likely to leave the bank. Geography — a customer’s location can affect their decision to leave the bank. We’ll keep this column. Gender — it’s interesting to explore whether gender plays a role in a customer leaving the bank. We’ll include this column, too. Age — this is certainly relevant, since older customers are less likely to leave their bank than younger ones. Tenure — refers to the number of years that the customer has been a client of the bank. Normally, older clients are more loyal and less likely to leave a bank. Balance — also a very good indicator of customer churn, as people with a higher balance in their accounts are less likely to leave the bank compared to those with lower balances. NumOfProducts — refers to the number of products that a customer has purchased through the bank. HasCrCard — denotes whether or not a customer has a credit card. This column is also relevant, since people with a credit card are less likely to leave the bank. (0=No,1=Yes) IsActiveMember — active customers are less likely to leave the bank, so we’ll keep this. (0=No,1=Yes) EstimatedSalary — as with balance, people with lower salaries are more likely to leave the bank compared to those with higher salaries. Exited — whether or not the customer left the bank. This is what we have to predict. (0=No,1=Yes)

Result The model created as a result of XGBoost hyperparameter optimization became the model with the maximum Accuracy Score. (0.8552)

churn-modelling-using-xgboost's People

Contributors

jimschacko avatar

Stargazers

 avatar  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.