Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -15,8 +15,8 @@ if "page" not in st.session_state:
|
|
| 15 |
def navigate_to(page_name):
|
| 16 |
st.session_state.page = page_name
|
| 17 |
|
| 18 |
-
# Global CSS for
|
| 19 |
-
st.markdown("""
|
| 20 |
<style>
|
| 21 |
.stApp {
|
| 22 |
background-image: url("https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/DALL%C2%B7E%202024-12-03%2023.34.47%20-%20A%20simple%20and%20elegant%20background%20image%20for%20an%20AI-themed%20web%20application.%20The%20background%20should%20feature%20a%20soft%20gradient%20transitioning%20from%20white%20to%20ligh.webp");
|
|
@@ -58,7 +58,8 @@ st.markdown("""
|
|
| 58 |
width: 160px;
|
| 59 |
height: 60px;
|
| 60 |
font-size: 16px;
|
| 61 |
-
|
|
|
|
| 62 |
color: black;
|
| 63 |
border-radius: 30px;
|
| 64 |
display: flex;
|
|
@@ -68,10 +69,10 @@ st.markdown("""
|
|
| 68 |
cursor: pointer;
|
| 69 |
transform-origin: 50% 50%;
|
| 70 |
transition: transform 0.3s ease, background-color 0.3s ease;
|
| 71 |
-
|
| 72 |
}
|
| 73 |
.step:hover {
|
| 74 |
-
background-color: #e6e6fa;
|
| 75 |
}
|
| 76 |
#step1 { transform: rotate(0deg) translateX(320px) rotate(-0deg); }
|
| 77 |
#step2 { transform: rotate(36deg) translateX(320px) rotate(-36deg); }
|
|
@@ -86,29 +87,29 @@ st.markdown("""
|
|
| 86 |
</style>
|
| 87 |
""", unsafe_allow_html=True)
|
| 88 |
|
| 89 |
-
# Render circular flowchart
|
| 90 |
if st.session_state.page == "Home":
|
| 91 |
st.markdown('<h1>Life Cycle of End-to-End ML Project</h1>', unsafe_allow_html=True)
|
| 92 |
st.markdown("""
|
| 93 |
<div class="circle-container">
|
| 94 |
<div class="circle">
|
| 95 |
<div class="steps">
|
| 96 |
-
<
|
| 97 |
-
<
|
| 98 |
-
<
|
| 99 |
-
<
|
| 100 |
-
<
|
| 101 |
-
<
|
| 102 |
-
<
|
| 103 |
-
<
|
| 104 |
-
<
|
| 105 |
-
<
|
| 106 |
</div>
|
| 107 |
</div>
|
| 108 |
</div>
|
| 109 |
""", unsafe_allow_html=True)
|
| 110 |
|
| 111 |
-
#
|
| 112 |
if st.button("Problem Statement", key="step1"):
|
| 113 |
navigate_to("ProblemStatement")
|
| 114 |
if st.button("Data Collection", key="step2"):
|
|
@@ -130,7 +131,7 @@ if st.session_state.page == "Home":
|
|
| 130 |
if st.button("Monitoring", key="step10"):
|
| 131 |
navigate_to("Monitoring")
|
| 132 |
|
| 133 |
-
#
|
| 134 |
elif st.session_state.page == "ProblemStatement":
|
| 135 |
st.write("### Problem Statement")
|
| 136 |
st.write("Define the problem for the ML project.")
|
|
@@ -146,4 +147,4 @@ elif st.session_state.page == "SimpleEDA":
|
|
| 146 |
st.write("Perform basic exploratory data analysis.")
|
| 147 |
if st.button("Go Back"):
|
| 148 |
navigate_to("Home")
|
| 149 |
-
# Add similar content for other
|
|
|
|
| 15 |
def navigate_to(page_name):
|
| 16 |
st.session_state.page = page_name
|
| 17 |
|
| 18 |
+
# Global CSS for styling
|
| 19 |
+
st.markdown("""
|
| 20 |
<style>
|
| 21 |
.stApp {
|
| 22 |
background-image: url("https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/DALL%C2%B7E%202024-12-03%2023.34.47%20-%20A%20simple%20and%20elegant%20background%20image%20for%20an%20AI-themed%20web%20application.%20The%20background%20should%20feature%20a%20soft%20gradient%20transitioning%20from%20white%20to%20ligh.webp");
|
|
|
|
| 58 |
width: 160px;
|
| 59 |
height: 60px;
|
| 60 |
font-size: 16px;
|
| 61 |
+
font-weight: bold;
|
| 62 |
+
background-color: #f0f8ff; /* Light background color */
|
| 63 |
color: black;
|
| 64 |
border-radius: 30px;
|
| 65 |
display: flex;
|
|
|
|
| 69 |
cursor: pointer;
|
| 70 |
transform-origin: 50% 50%;
|
| 71 |
transition: transform 0.3s ease, background-color 0.3s ease;
|
| 72 |
+
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
|
| 73 |
}
|
| 74 |
.step:hover {
|
| 75 |
+
background-color: #e6e6fa; /* Hover color */
|
| 76 |
}
|
| 77 |
#step1 { transform: rotate(0deg) translateX(320px) rotate(-0deg); }
|
| 78 |
#step2 { transform: rotate(36deg) translateX(320px) rotate(-36deg); }
|
|
|
|
| 87 |
</style>
|
| 88 |
""", unsafe_allow_html=True)
|
| 89 |
|
| 90 |
+
# Render the circular flowchart
|
| 91 |
if st.session_state.page == "Home":
|
| 92 |
st.markdown('<h1>Life Cycle of End-to-End ML Project</h1>', unsafe_allow_html=True)
|
| 93 |
st.markdown("""
|
| 94 |
<div class="circle-container">
|
| 95 |
<div class="circle">
|
| 96 |
<div class="steps">
|
| 97 |
+
<div class="step" id="step1" onclick="document.querySelector('button[name=step1]').click()">Problem Statement</div>
|
| 98 |
+
<div class="step" id="step2" onclick="document.querySelector('button[name=step2]').click()">Data Collection</div>
|
| 99 |
+
<div class="step" id="step3" onclick="document.querySelector('button[name=step3]').click()">Simple EDA</div>
|
| 100 |
+
<div class="step" id="step4" onclick="document.querySelector('button[name=step4]').click()">Data Preprocessing</div>
|
| 101 |
+
<div class="step" id="step5" onclick="document.querySelector('button[name=step5]').click()">EDA</div>
|
| 102 |
+
<div class="step" id="step6" onclick="document.querySelector('button[name=step6]').click()">Feature Engineering</div>
|
| 103 |
+
<div class="step" id="step7" onclick="document.querySelector('button[name=step7]').click()">Model Training</div>
|
| 104 |
+
<div class="step" id="step8" onclick="document.querySelector('button[name=step8]').click()">Model Testing</div>
|
| 105 |
+
<div class="step" id="step9" onclick="document.querySelector('button[name=step9]').click()">Model Deployment</div>
|
| 106 |
+
<div class="step" id="step10" onclick="document.querySelector('button[name=step10]').click()">Monitoring</div>
|
| 107 |
</div>
|
| 108 |
</div>
|
| 109 |
</div>
|
| 110 |
""", unsafe_allow_html=True)
|
| 111 |
|
| 112 |
+
# Handle navigation for each step
|
| 113 |
if st.button("Problem Statement", key="step1"):
|
| 114 |
navigate_to("ProblemStatement")
|
| 115 |
if st.button("Data Collection", key="step2"):
|
|
|
|
| 131 |
if st.button("Monitoring", key="step10"):
|
| 132 |
navigate_to("Monitoring")
|
| 133 |
|
| 134 |
+
# Individual page content
|
| 135 |
elif st.session_state.page == "ProblemStatement":
|
| 136 |
st.write("### Problem Statement")
|
| 137 |
st.write("Define the problem for the ML project.")
|
|
|
|
| 147 |
st.write("Perform basic exploratory data analysis.")
|
| 148 |
if st.button("Go Back"):
|
| 149 |
navigate_to("Home")
|
| 150 |
+
# Add similar content for other steps...
|