Churn Modelling
Churn rate, in its broadest sense, is a measure of the number of individuals or items moving out of a collective group over a specific period. It is one of two primary factors that determine the steady-state level of customers a business will support. (Source -> Wikipedia)
In this notebook the data set contains details of a bank's customers and the target variable is a binary variable reflecting the fact whether the customer left the bank (closed his account) or he continues to be a customer.
In this notebook you will see
-
Data Preprocessing
-
Importing the libraries
-
Loading the data.
-
Encoding categorical data
-
Splitting the data into training and test set
-
-
Building the ANN(Artificial Neural Network)
-
Inititalizing the ANN
-
Adding the input layer and hidden layers
-
Compiling the model
-
Fitting the ANN to the training data
-
Making the predictions and evaluating the model
-
-
Evaluating, Improving and Tuning the ANN
- Evaluating the model(Using Keras Classifier and K-fold cross validation)
- Improving the ANN(Tuning model hyperparameters using Grid Search CV)
Data Preprocessing
Importing the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os