import streamlit as st
import pandas as pd
import numpy as np
# Page configuration
st.set_page_config(page_title="Electronics Sales Analysis", layout="wide")
# Title with centered alignment
st.markdown(
"""
๐ฑ Consumer Electronics Sales Analysis and ML Model ๐ป
""",
unsafe_allow_html=True
)
# Main image with 90% width
st.markdown(
"""
""",
unsafe_allow_html=True
)
# Project description
st.markdown(
"""
## Project Title: ๐ฑConsumer Electronics Sales | 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.
##### By integrating **machine learning** with **data analysis**, this project empowers the Electronics market to enhance customer satisfaction, optimize pricing strategies according to purchase intent, and maximize 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")