Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
# Page configuration
|
| 4 |
st.set_page_config(
|
|
@@ -7,16 +8,8 @@ st.set_page_config(
|
|
| 7 |
layout="wide"
|
| 8 |
)
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
st.session_state.page = "Home"
|
| 13 |
-
|
| 14 |
-
# Function to handle navigation
|
| 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,8 +51,7 @@ st.markdown("""
|
|
| 58 |
width: 160px;
|
| 59 |
height: 60px;
|
| 60 |
font-size: 16px;
|
| 61 |
-
|
| 62 |
-
background-color: #f0f8ff; /* Light background color */
|
| 63 |
color: black;
|
| 64 |
border-radius: 30px;
|
| 65 |
display: flex;
|
|
@@ -69,10 +61,10 @@ st.markdown("""
|
|
| 69 |
cursor: pointer;
|
| 70 |
transform-origin: 50% 50%;
|
| 71 |
transition: transform 0.3s ease, background-color 0.3s ease;
|
| 72 |
-
|
| 73 |
}
|
| 74 |
.step:hover {
|
| 75 |
-
background-color: #e6e6fa;
|
| 76 |
}
|
| 77 |
#step1 { transform: rotate(0deg) translateX(320px) rotate(-0deg); }
|
| 78 |
#step2 { transform: rotate(36deg) translateX(320px) rotate(-36deg); }
|
|
@@ -87,64 +79,24 @@ st.markdown("""
|
|
| 87 |
</style>
|
| 88 |
""", unsafe_allow_html=True)
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
</div>
|
| 108 |
</div>
|
| 109 |
</div>
|
| 110 |
-
|
| 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"):
|
| 116 |
-
navigate_to("DataCollection")
|
| 117 |
-
if st.button("Simple EDA", key="step3"):
|
| 118 |
-
navigate_to("SimpleEDA")
|
| 119 |
-
if st.button("Data Preprocessing", key="step4"):
|
| 120 |
-
navigate_to("DataPreprocessing")
|
| 121 |
-
if st.button("EDA", key="step5"):
|
| 122 |
-
navigate_to("EDA")
|
| 123 |
-
if st.button("Feature Engineering", key="step6"):
|
| 124 |
-
navigate_to("FeatureEngineering")
|
| 125 |
-
if st.button("Model Training", key="step7"):
|
| 126 |
-
navigate_to("ModelTraining")
|
| 127 |
-
if st.button("Model Testing", key="step8"):
|
| 128 |
-
navigate_to("ModelTesting")
|
| 129 |
-
if st.button("Model Deployment", key="step9"):
|
| 130 |
-
navigate_to("ModelDeployment")
|
| 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.")
|
| 138 |
-
if st.button("Go Back"):
|
| 139 |
-
navigate_to("Home")
|
| 140 |
-
elif st.session_state.page == "DataCollection":
|
| 141 |
-
st.write("### Data Collection")
|
| 142 |
-
st.write("Collect data for the ML project.")
|
| 143 |
-
if st.button("Go Back"):
|
| 144 |
-
navigate_to("Home")
|
| 145 |
-
elif st.session_state.page == "SimpleEDA":
|
| 146 |
-
st.write("### Simple EDA")
|
| 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...
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import streamlit as st
|
| 3 |
|
| 4 |
# Page configuration
|
| 5 |
st.set_page_config(
|
|
|
|
| 8 |
layout="wide"
|
| 9 |
)
|
| 10 |
|
| 11 |
+
# Global CSS for consistent styling
|
| 12 |
+
st.markdown("""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
<style>
|
| 14 |
.stApp {
|
| 15 |
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");
|
|
|
|
| 51 |
width: 160px;
|
| 52 |
height: 60px;
|
| 53 |
font-size: 16px;
|
| 54 |
+
background-color: #f0f8ff;
|
|
|
|
| 55 |
color: black;
|
| 56 |
border-radius: 30px;
|
| 57 |
display: flex;
|
|
|
|
| 61 |
cursor: pointer;
|
| 62 |
transform-origin: 50% 50%;
|
| 63 |
transition: transform 0.3s ease, background-color 0.3s ease;
|
| 64 |
+
font-weight: bold;
|
| 65 |
}
|
| 66 |
.step:hover {
|
| 67 |
+
background-color: #e6e6fa;
|
| 68 |
}
|
| 69 |
#step1 { transform: rotate(0deg) translateX(320px) rotate(-0deg); }
|
| 70 |
#step2 { transform: rotate(36deg) translateX(320px) rotate(-36deg); }
|
|
|
|
| 79 |
</style>
|
| 80 |
""", unsafe_allow_html=True)
|
| 81 |
|
| 82 |
+
|
| 83 |
+
# Render the circular layout
|
| 84 |
+
st.markdown('<h1>Life Cycle of End-to-End ML Project</h1>', unsafe_allow_html=True)
|
| 85 |
+
st.markdown("""
|
| 86 |
+
<div class="circle-container">
|
| 87 |
+
<div class="circle">
|
| 88 |
+
<div class="steps">
|
| 89 |
+
<div class="step" id="step1">Problem Statement</div>
|
| 90 |
+
<div class="step" id="step2">Data Collection</div>
|
| 91 |
+
<div class="step" id="step3">Simple EDA</div>
|
| 92 |
+
<div class="step" id="step4">Data Preprocessing</div>
|
| 93 |
+
<div class="step" id="step5">EDA</div>
|
| 94 |
+
<div class="step" id="step6">Feature Engineering</div>
|
| 95 |
+
<div class="step" id="step7">Model Training</div>
|
| 96 |
+
<div class="step" id="step8">Model Testing</div>
|
| 97 |
+
<div class="step" id="step9">Model Deployment</div>
|
| 98 |
+
<div class="step" id="step10">Monitoring</div>
|
|
|
|
| 99 |
</div>
|
| 100 |
</div>
|
| 101 |
+
</div>
|
| 102 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|