Semster 6 Mini Project. This project aims to analyze the dataset provided containing customer data with known churn value and design a model that finds the patterns in the data using which it is able to predict the churn value for customers whose churn value is not known. This project includes an application of the predicted churn value where proactive action is take if the customer is going to churn.
This project covers the following topics
- Data Preprocessing
- OneHotEncoding
- Data Scaling
- Outlier Analysis
- Machine Learning
- Training
- Validation
- Web apps using Django
- Frontend - HTML, CSS, JS
- Frameworks - Django
- Machine Learning Algorithms
- Linear Discriminant Analysis
- Decision Tree
- Random Forest
- XGBoost
- Making a Pipeline
- CNN
-
- Package managers - pip
- Install dependencies -
pip install -r requirements.txt
- Description
- The data set belongs to a leading online E-Commerce company. An online retail (E commerce) company wants to know the customers who are going to churn, so accordingly they can approach customer to offer some promos.
The dataset file
, trained model weights
and the pipeline that does data preprocessing
.
The Mini_Proj.ipynb file contains all the code used in cleaning the data and model validation.
- - Data Cleaning and Pre-processing
- - Handle missing values (replacing with median value)
- - Categorical and Numeric Data Identification
- - Plotting Data Feartures (For Understanding)
- - One Hot Encoding (Nominal to Numeric conversion)
- - Data Scaling
- - Analysing the Churn by each Variable - Visualising via Graphs
- - Model Training - Repeated for different Algorithms
- - Train Model based on processed Data
- - Model Validation on Test Data
- - Model Score (Precision, recall f1-score, support)
- - Confusion Matrix
- - Model Comparison
- - Exporting Model
- - Exporting Model Weights
- - Creating Data Pipeline
- - Web Applicaion
- - Creating an Ecommerce Website Frontend
- - Loading trained model weights and Pipeline
- - Creating Database containing customer churn with unknown churn.
- - Prediction of Churn and Coupon Display on Homepage