Update pages/0_Problem-Statement_and_Aim.py
Browse files
pages/0_Problem-Statement_and_Aim.py
CHANGED
|
@@ -2,39 +2,46 @@ import streamlit as st
|
|
| 2 |
import pandas as pd
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
st.
|
| 10 |
-
|
| 11 |
-
# Problem statement section
|
| 12 |
-
st.subheader("Problem Statement :")
|
| 13 |
|
| 14 |
# Text explaining the problem
|
| 15 |
-
st.
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
- Data Preprocessing, Feature Engineering
|
| 24 |
-
- Exploratory Data Analysis
|
| 25 |
-
- Model Creation & Evaluation
|
| 26 |
-
""")
|
| 27 |
st.markdown(
|
| 28 |
"""
|
| 29 |
<div style="text-align: center;">
|
| 30 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/o_hx-CUYhb2kbgFHZpd9l.jpeg
|
| 31 |
</div>
|
| 32 |
""",
|
| 33 |
unsafe_allow_html=True
|
| 34 |
)
|
|
|
|
|
|
|
| 35 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/clljdAv7f_LGL8dH5vCZQ.jpeg"
|
| 36 |
|
| 37 |
-
# Apply custom CSS for the background image and overlay
|
| 38 |
st.markdown(
|
| 39 |
f"""
|
| 40 |
<style>
|
|
@@ -44,7 +51,6 @@ st.markdown(
|
|
| 44 |
background-position: center;
|
| 45 |
height: 100vh;
|
| 46 |
}}
|
| 47 |
-
|
| 48 |
/* Semi-transparent overlay */
|
| 49 |
.stApp::before {{
|
| 50 |
content: "";
|
|
@@ -56,12 +62,11 @@ st.markdown(
|
|
| 56 |
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 57 |
z-index: -1;
|
| 58 |
}}
|
| 59 |
-
|
| 60 |
.stMarkdown {{
|
| 61 |
color: white; /* White text to ensure visibility */
|
| 62 |
-
font-size: 50px; /* Adjust font size for better readability */
|
| 63 |
}}
|
| 64 |
</style>
|
| 65 |
""",
|
| 66 |
unsafe_allow_html=True
|
| 67 |
-
)
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import numpy as np
|
| 4 |
|
| 5 |
+
# Title with centered alignment
|
| 6 |
+
st.markdown("<h1 style='text-align:center; color:white;'>Problem Statement and Aim for this Project</h1>", unsafe_allow_html=True)
|
| 7 |
|
| 8 |
+
# Centered header for the Streamlit app
|
| 9 |
+
st.markdown("<h2 style='text-align:center;'>Analyzing and classifying the consumer electronics sales.</h2>", unsafe_allow_html=True)
|
| 10 |
|
| 11 |
+
# Problem statement section with center alignment
|
| 12 |
+
st.markdown("<h3 style='text-align:center;'>Problem Statement and Aim:</h3>", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Text explaining the problem
|
| 15 |
+
st.markdown(
|
| 16 |
+
"""
|
| 17 |
+
<div style="text-align: center;">
|
| 18 |
+
<p><b>Title:</b> Analyzing and predicting the electronics sales and consumer purchase intent Using Machine Learning</p>
|
| 19 |
+
<p><b>Problem Statement:</b> Given a dataset of consumer electronics sales, which includes customer demographics, product details, and satisfaction metrics, can we develop a classification model that can accurately predict whether a customer intends to purchase a product or not?</p>
|
| 20 |
+
<p><b>Aim for this project:</b> The goal of this project is to build a robust end-to-end machine learning pipeline to classify customer purchase intent using the provided features. The steps will include data preprocessing, exploratory data analysis (EDA), feature engineering, model training, and evaluation. The final goal is to achieve the highest possible accuracy and generalization on unseen data.</p>
|
| 21 |
+
<p><b>Key Objectives:</b></p>
|
| 22 |
+
<ul style="list-style-position: inside; text-align: center;">
|
| 23 |
+
<li>Data Preprocessing, Feature Engineering</li>
|
| 24 |
+
<li>Exploratory Data Analysis</li>
|
| 25 |
+
<li>Model Creation & Evaluation</li>
|
| 26 |
+
</ul>
|
| 27 |
+
</div>
|
| 28 |
+
""",
|
| 29 |
+
unsafe_allow_html=True
|
| 30 |
+
)
|
| 31 |
|
| 32 |
+
# Center-aligned image
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
st.markdown(
|
| 34 |
"""
|
| 35 |
<div style="text-align: center;">
|
| 36 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/o_hx-CUYhb2kbgFHZpd9l.jpeg" width="70%" />
|
| 37 |
</div>
|
| 38 |
""",
|
| 39 |
unsafe_allow_html=True
|
| 40 |
)
|
| 41 |
+
|
| 42 |
+
# Background image with semi-transparent overlay
|
| 43 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/clljdAv7f_LGL8dH5vCZQ.jpeg"
|
| 44 |
|
|
|
|
| 45 |
st.markdown(
|
| 46 |
f"""
|
| 47 |
<style>
|
|
|
|
| 51 |
background-position: center;
|
| 52 |
height: 100vh;
|
| 53 |
}}
|
|
|
|
| 54 |
/* Semi-transparent overlay */
|
| 55 |
.stApp::before {{
|
| 56 |
content: "";
|
|
|
|
| 62 |
background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
|
| 63 |
z-index: -1;
|
| 64 |
}}
|
| 65 |
+
/* Styling the content to ensure text visibility */
|
| 66 |
.stMarkdown {{
|
| 67 |
color: white; /* White text to ensure visibility */
|
|
|
|
| 68 |
}}
|
| 69 |
</style>
|
| 70 |
""",
|
| 71 |
unsafe_allow_html=True
|
| 72 |
+
)
|