01
Live Demo
You can access the live application here:
Jupyter Notebook · from GitHub
Project I
This project uses an Artificial Neural Network (ANN) to predict customer churn based on historical data. It includes a Streamlit web application that allows users to input customer details and receive a real-time prediction on whether the customer is likely to churn.
WebGL · move your cursor
// readme
01
You can access the live application here:
02
03
Follow these instructions to get a copy of the project up and running on your local machine.
You will need to have Python installed on your system. You can download it from the official Python website.
Clone the repository:
git clone https://github.com/your-username/customer-churn-prediction.git
cd customer-churn-prediction
Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
Note: On Windows, the activation command is venv\Scripts\activate
Install the required libraries:
pip install -r requirements.txt
04
To run the Streamlit application, execute the following command in your terminal:
streamlit run app.py
This will open a new tab in your web browser with the application running locally at http://localhost:8501.
05
app.py: The main file for the Streamlit web application.
nn.ipynb: A Jupyter Notebook containing the code for training the neural network.prediction.ipynb: A Jupyter Notebook demonstrating how to make predictions with the trained model.Churn_Modelling.csv: The dataset used for training the model.model.keras: The pre-trained Keras model.requirements.txt: A list of all the Python libraries required for this project.gender_le.pkl, geography_ohe.pkl, scaler.pkl: The saved encoders and scaler used for data preprocessing.06
The model is an Artificial Neural Network (ANN) built with TensorFlow and Keras. The training process involves:
model.keras.07
This project uses the "Churn Modelling" dataset, which is available on Kaggle.