This repository contains a neural network-based model for predicting customer churn. The model learns patterns from historical customer data and performs binary classification to estimate whether a customer is likely to leave or stay.
The implementation follows a standard machine learning workflow, including data preprocessing, model training, evaluation, and prediction using an Artificial Neural Network.
-
Churn_Modelling.csvA dataset containing customer features such as demographics, account information, and activity indicators. -
churn_model.ipynbJupyter notebook that covers data loading, preprocessing, model construction, training, evaluation, and prediction. -
churn_model.pklSaved trained model that can be loaded directly for inference without retraining.
- Load and explore the dataset.
- Encode categorical variables and scale numerical features.
- Split the data into training and testing sets.
- Build an Artificial Neural Network using a deep learning framework.
- Train the model on the training data.
- Evaluate performance on the test data.
- Generate churn predictions for new customer samples.
The model produces a probability score for churn and a final binary classification:
1indicates the customer is likely to churn0indicates the customer is likely to remain
-
Open
churn_model.ipynbin Jupyter Notebook or VS Code. -
Install the required Python libraries, such as:
- numpy
- pandas
- scikit-learn
- tensorflow / keras
-
Run the notebook cells in sequence to train the model and view evaluation results.
To use the trained model directly, load churn_model.pkl in a Python script and pass new customer data for prediction.