Git Product home page Git Product logo

customer-churn-prediction's Introduction

Customer-churn-prediction

This repository contains code for performing Binary Classification on the Customer Churn Dataset taken from Kaggle. Classification Models used

  • Logistic Regression
  • Decision Tree
  • H20 AutoML (Gradient Boosting Machine was the best model)

We compare the models and interpret them using Partial Dependence Plots and Shap values to understand the model predictions and influence of different features

Dataset

This dataset has 10000 records and 12 columns(11 features and a target variable(Churn) containing details of customers for ABC Multistate bank.

  • customer_id - unique id representing each customer
  • credit_score - credit score for each customer
  • country - location of the account
  • gender - customer gender
  • age - age of customer
  • tenure - duration with the bank for each customer
  • balance - account balance
  • products_number - number of bank products utilized by the customer
  • credit_card - no of credit cards held by customer
  • active_member - 0 or 1, does the customer regularly use the services offered by the bank
  • estimated_salary - salary of customer
  • churn - target variable. 1 if the client has left the bank during some period or 0 if he/she has not.

Packages to be installed

! pip install -q kaggle

! pip install h2o

! pip install shap

Note : This Notebook can run on Google Colab. To import the kaggle dataset, download the API key from your kaggle account and name it as "kaggle.json". Upload the kaggle.json while running the "upload.files" cell in the notebook

customer-churn-prediction's People

Contributors

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