Spaces:
Sleeping
Sleeping
Update Home.py
Browse files
Home.py
CHANGED
|
@@ -3,12 +3,12 @@ import pandas as pd
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# Page configuration
|
| 6 |
-
st.set_page_config(page_title="
|
| 7 |
|
| 8 |
# Title with centered alignment
|
| 9 |
st.markdown(
|
| 10 |
"""
|
| 11 |
-
<h1 style="text-align: center; color: white;">馃摫
|
| 12 |
""",
|
| 13 |
unsafe_allow_html=True
|
| 14 |
)
|
|
@@ -17,7 +17,7 @@ st.markdown(
|
|
| 17 |
st.markdown(
|
| 18 |
"""
|
| 19 |
<div style="text-align: center;">
|
| 20 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/
|
| 21 |
</div>
|
| 22 |
""",
|
| 23 |
unsafe_allow_html=True
|
|
@@ -26,7 +26,7 @@ st.markdown(
|
|
| 26 |
# Project description
|
| 27 |
st.markdown(
|
| 28 |
"""
|
| 29 |
-
## Project Title: 馃摫
|
| 30 |
|
| 31 |
##### 馃搳 Data Exploration and Preprocessing:
|
| 32 |
- 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.
|
|
@@ -41,7 +41,7 @@ st.markdown(
|
|
| 41 |
- Comparing model performance using metrics like **accuracy**, **F1 score**, or **Log-loss score**, depending on the task.
|
| 42 |
- Employing techniques like **hyperparameter tuning** and **cross-validation** for optimization.
|
| 43 |
|
| 44 |
-
#####
|
| 45 |
""",
|
| 46 |
unsafe_allow_html=True
|
| 47 |
)
|
|
@@ -107,4 +107,5 @@ st.markdown(
|
|
| 107 |
|
| 108 |
# Center-aligned button with emoji and functionality
|
| 109 |
if st.button("Next 鈴笍"):
|
| 110 |
-
st.switch_page("pages/0_Problem-Statement_and_Aim.py")
|
|
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
# Page configuration
|
| 6 |
+
st.set_page_config(page_title="Customer Chrun Prediction", layout="wide")
|
| 7 |
|
| 8 |
# Title with centered alignment
|
| 9 |
st.markdown(
|
| 10 |
"""
|
| 11 |
+
<h1 style="text-align: center; color: white;">馃摫 Customer Churn Prediction and ML Model 馃捇</h1>
|
| 12 |
""",
|
| 13 |
unsafe_allow_html=True
|
| 14 |
)
|
|
|
|
| 17 |
st.markdown(
|
| 18 |
"""
|
| 19 |
<div style="text-align: center;">
|
| 20 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/67445925102349e867c92342/qVlbdupofJ-3eN5WxJqQ5.jpeg" width="90%" />
|
| 21 |
</div>
|
| 22 |
""",
|
| 23 |
unsafe_allow_html=True
|
|
|
|
| 26 |
# Project description
|
| 27 |
st.markdown(
|
| 28 |
"""
|
| 29 |
+
## Project Title: 馃摫Customer Churn Prediction | EDA + Model 馃捇:
|
| 30 |
|
| 31 |
##### 馃搳 Data Exploration and Preprocessing:
|
| 32 |
- 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.
|
|
|
|
| 41 |
- Comparing model performance using metrics like **accuracy**, **F1 score**, or **Log-loss score**, depending on the task.
|
| 42 |
- Employing techniques like **hyperparameter tuning** and **cross-validation** for optimization.
|
| 43 |
|
| 44 |
+
##### 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 .
|
| 45 |
""",
|
| 46 |
unsafe_allow_html=True
|
| 47 |
)
|
|
|
|
| 107 |
|
| 108 |
# Center-aligned button with emoji and functionality
|
| 109 |
if st.button("Next 鈴笍"):
|
| 110 |
+
st.switch_page("pages/0_Problem-Statement_and_Aim.py")
|
| 111 |
+
|