Customer churn example
In our second example, we will create a binary model to predict customer churn for a bank. We are going to use a dataset that contains the following fields:
customer_id
: A unique identifier for each customer.credit_score
: A numerical representation of a customer’s creditworthiness.country
: The country where the customer resides.gender
: The gender of the customer.age
: The age of the customer.tenure
: The duration of the customer’s relationship with the company.balance
: The current balance in the customer’s account.products_number
: The number of products the customer has brought from the company.credit_card
: A binary indicator showing whether the customer holds a credit card with the company.active_member
: A binary indicator indicating whether the customer is currently an active member of the company.estimated_salary
: An approximate estimation of the customer’s salary.churn...