import streamlit as st import pandas as pd import numpy as np # Page configuration st.set_page_config(page_title="Customer Chrun Prediction", layout="wide") # Title with centered alignment st.markdown( """

๐Ÿฆ Customer Churn Prediction and ML Model ๐Ÿ’ป

""", unsafe_allow_html=True ) # Main image with 90% width st.markdown( """
""", unsafe_allow_html=True ) # Project description st.markdown( """ ## Project Title: ๐ŸฆCustomer Churn Prediction | EDA + Model ๐Ÿ’ป: ##### ๐Ÿ“Š Data Exploration and Preprocessing: - Preparing data by encoding categorical features like "ProductCategory" and "ProductBrand" and scaling numerical data such as "price" and "rating", as the dataset has minimal outliers or missing values. - Analyzing trends in **Product Categories**, **Brands**, **Prices**, **CustomerAge**, etc., to identify influential factors. ##### ๐Ÿค– Predictive Modeling: - **Target Variable**: Predicting key metrics like *PurchaseIntent*. - **Model Selection**: Building ML models such as **KNN**, **Logistic Regression**, and **Support Vector Machine** for classification tasks. - **Feature Engineering**: Extracting insights from **ProductCategory**, **ProductBrand**, and label encoding. ##### ๐Ÿ“ˆ Model Evaluation: - Comparing model performance using metrics like **accuracy**, **F1 score**, or **Log-loss score**, depending on the task. - Employing techniques like **hyperparameter tuning** and **cross-validation** for optimization. ##### Customer churn prediction helps businesses identify customers at risk of leaving, enabling proactive retention strategies. By analyzing patterns like purchase behavior and customer feedback, it aids in tailoring personalized offers to reduce churn. This ultimately enhances customer satisfaction, loyalty, and profitability . """, unsafe_allow_html=True ) # Custom title styling st.markdown( """ """, unsafe_allow_html=True ) # Flowchart title st.markdown( '
Electronics Sales Analysis and Model Creation Flow
', unsafe_allow_html=True ) # Flowchart GIF with 90% width st.markdown( """
""", unsafe_allow_html=True ) # Custom background with overlay st.markdown( """ """, unsafe_allow_html=True ) # Center-aligned button with emoji and functionality if st.button("Next โญ๏ธ"): st.switch_page("pages/0_Problem-Statement_and_Aim.py")