Skip to content

This repository contains the code for implementing a user-friendly interface using Streamlit for the Customer Churn Analysis project (LP2). The interface allows users to interact with the classification model developed for predicting customer churn.

License

Notifications You must be signed in to change notification settings

IddieGod/Streamlit-Prediction-App-Churn-Analysis

Repository files navigation

IDG Customer Churn Predictor App

The IDG Customer Churn Predictor App is an interactive Streamlit application designed to predict customer churn based on provided data. This README provides comprehensive instructions on creating, deploying, and using the app.

Table of Contents

  1. Setup
  2. Running the App
  3. Usage
  4. Models Used
  5. Deployment
  6. Further Development
  7. Contributing
  8. License

Setup

  1. Clone Repository: Clone the repository containing the Streamlit app code.
  2. Install Dependencies: Install the required dependencies using pip.
  3. Data Setup: Ensure you have a CSV dataset named Churn Prediction Dataset.csv placed inside a folder named dataset in the project directory.
  4. Configuration: Update the config.yaml file with necessary credentials and configuration details.

Running the App

To run the app locally, execute the following command in the project directory:

streamlit run app.py

The app will start running locally and can be accessed through a web browser.

Usage

Home Page

  • Provides an overview of the app and its purpose.

Login Page

  • Existing Users: Enter your username and password to log in.
  • New Users: Create an account by providing a new username and password.

Data Page

  • Displays basic information about the dataset.
  • Shows summary statistics of numerical variables.
  • Provides the first few rows of the dataset.
  • Conducts univariate and bivariate analysis.
  • Presents additional analysis using pandas styling.

Predictor Page

  • Batch Prediction: Upload a CSV dataset containing customer information to predict churn.
  • Online Prediction: Input customer details interactively to predict churn.

Dashboard Page

  • Provides visualizations and analytics related to customer churn.
  • Includes research questions and key performance indicators.
  • Offers insights through various charts and plots.

History Page

  • Tracks user interactions with the app.
  • Displays a history log of actions performed by the user.
  • Allows navigating back to previous points in history.

Models Used

Supported Models

  1. Support Vector Machine (SVM)
  2. XGBoost
  3. Decision Tree Model
  4. Random Forest

Description

  • SVM: Supervised machine learning algorithm used for classification tasks.
  • XGBoost: Implementation of gradient boosted decision trees designed for speed and performance.

Model Training

  • Data Preprocessing
  • Pipeline Creation
  • Model Training
  • Evaluation

Model Selection

  • User Choice
  • Performance Comparison

Deployment

  • Model Serialization
  • Model Loading

Further Development

  • Model Tuning
  • Model Expansion
  • Model Monitoring

Deployment

-Performed app deployment with Render https://idg-churn-prediction-app.onrender.com

Contributing

Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or create a pull request.

License

This project is licensed under the Apache 2.0. Feel free to use, modify, and distribute the code for personal and commercial purposes.

About

This repository contains the code for implementing a user-friendly interface using Streamlit for the Customer Churn Analysis project (LP2). The interface allows users to interact with the classification model developed for predicting customer churn.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages