Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
# Set up the page config
|
| 4 |
st.set_page_config(
|
| 5 |
page_title="HomePage",
|
| 6 |
page_icon="🚀",
|
|
@@ -26,7 +25,6 @@ st.markdown("""
|
|
| 26 |
</style>
|
| 27 |
""", unsafe_allow_html=True)
|
| 28 |
|
| 29 |
-
# Set background and page title
|
| 30 |
st.markdown(
|
| 31 |
"""
|
| 32 |
<style>
|
|
@@ -44,7 +42,7 @@ st.markdown(
|
|
| 44 |
# Title of the page
|
| 45 |
st.markdown("""<div style="text-align: left; margin-top: 20px;"><h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
|
| 46 |
|
| 47 |
-
# Circle Representation HTML and CSS
|
| 48 |
html_code = """
|
| 49 |
<!DOCTYPE html>
|
| 50 |
<html lang="en">
|
|
@@ -103,18 +101,87 @@ html_code = """
|
|
| 103 |
}
|
| 104 |
.step:hover {
|
| 105 |
background-color: #0056b3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
}
|
| 107 |
/* Rotate steps to form a circular layout */
|
| 108 |
-
#
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
#
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
#
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
</style>
|
| 119 |
</head>
|
| 120 |
<body>
|
|
@@ -122,16 +189,16 @@ html_code = """
|
|
| 122 |
<h1></h1>
|
| 123 |
<div class="circle">
|
| 124 |
<div class="steps">
|
| 125 |
-
<div class="step" id="step2"
|
| 126 |
-
<div class="step" id="step3"
|
| 127 |
-
<div class="step" id="step4"
|
| 128 |
-
<div class="step" id="step5"
|
| 129 |
-
<div class="step" id="step6"
|
| 130 |
-
<div class="step" id="step7"
|
| 131 |
-
<div class="step" id="step8"
|
| 132 |
-
<div class="step" id="step9"
|
| 133 |
-
<div class="step" id="step10"
|
| 134 |
-
<div class="step" id="step1"
|
| 135 |
</div>
|
| 136 |
</div>
|
| 137 |
</div>
|
|
@@ -139,14 +206,11 @@ html_code = """
|
|
| 139 |
</html>
|
| 140 |
"""
|
| 141 |
|
| 142 |
-
# Display the circle
|
| 143 |
st.markdown(html_code, unsafe_allow_html=True)
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
st.write(f"Redirecting to {page} page...")
|
| 151 |
-
else:
|
| 152 |
-
st.write("Welcome to the Home page!")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
| 3 |
st.set_page_config(
|
| 4 |
page_title="HomePage",
|
| 5 |
page_icon="🚀",
|
|
|
|
| 25 |
</style>
|
| 26 |
""", unsafe_allow_html=True)
|
| 27 |
|
|
|
|
| 28 |
st.markdown(
|
| 29 |
"""
|
| 30 |
<style>
|
|
|
|
| 42 |
# Title of the page
|
| 43 |
st.markdown("""<div style="text-align: left; margin-top: 20px;"><h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
|
| 44 |
|
| 45 |
+
# Circle Representation HTML and CSS (properly rendered)
|
| 46 |
html_code = """
|
| 47 |
<!DOCTYPE html>
|
| 48 |
<html lang="en">
|
|
|
|
| 101 |
}
|
| 102 |
.step:hover {
|
| 103 |
background-color: #0056b3;
|
| 104 |
+
}
|
| 105 |
+
/* Different background colors for each step */
|
| 106 |
+
#step1 {
|
| 107 |
+
background-color: #FFCCCC;
|
| 108 |
+
transform: rotate(0deg) translateX(140px) rotate(0deg);
|
| 109 |
+
}
|
| 110 |
+
#step2 {
|
| 111 |
+
background-color: #FFDD99;
|
| 112 |
+
transform: rotate(36deg) translateX(140px) rotate(-36deg);
|
| 113 |
+
}
|
| 114 |
+
#step3 {
|
| 115 |
+
background-color: #FFFF99;
|
| 116 |
+
transform: rotate(72deg) translateX(140px) rotate(-72deg);
|
| 117 |
+
}
|
| 118 |
+
#step4 {
|
| 119 |
+
background-color: #CCFFCC;
|
| 120 |
+
transform: rotate(108deg) translateX(140px) rotate(-108deg);
|
| 121 |
+
}
|
| 122 |
+
#step5 {
|
| 123 |
+
background-color: #CCE5FF;
|
| 124 |
+
transform: rotate(144deg) translateX(140px) rotate(-144deg);
|
| 125 |
+
}
|
| 126 |
+
#step6 {
|
| 127 |
+
background-color: #E5CCFF;
|
| 128 |
+
transform: rotate(180deg) translateX(140px) rotate(-180deg);
|
| 129 |
+
}
|
| 130 |
+
#step7 {
|
| 131 |
+
background-color: #FFD9E6;
|
| 132 |
+
transform: rotate(216deg) translateX(140px) rotate(-216deg);
|
| 133 |
+
}
|
| 134 |
+
#step8 {
|
| 135 |
+
background-color: #FFF5CC;
|
| 136 |
+
transform: rotate(252deg) translateX(140px) rotate(-252deg);
|
| 137 |
+
}
|
| 138 |
+
#step9 {
|
| 139 |
+
background-color: #D9FFF5;
|
| 140 |
+
transform: rotate(288deg) translateX(140px) rotate(-288deg);
|
| 141 |
+
}
|
| 142 |
+
#step10 {
|
| 143 |
+
background-color: #D9CCFF;
|
| 144 |
+
transform: rotate(324deg) translateX(140px) rotate(-324deg);
|
| 145 |
}
|
| 146 |
/* Rotate steps to form a circular layout */
|
| 147 |
+
#step4 {
|
| 148 |
+
transform: rotate(0deg) translateX(250px) rotate(0deg);
|
| 149 |
+
}
|
| 150 |
+
#step5 {
|
| 151 |
+
transform: rotate(25deg) translateX(250px) rotate(-25deg);
|
| 152 |
+
}
|
| 153 |
+
#step6 {
|
| 154 |
+
transform: rotate(60deg) translateX(250px) rotate(-60deg);
|
| 155 |
+
}
|
| 156 |
+
#step7 {
|
| 157 |
+
transform: rotate(120deg) translateX(250px) rotate(-120deg);
|
| 158 |
+
}
|
| 159 |
+
#step8 {
|
| 160 |
+
transform: rotate(155deg) translateX(250px) rotate(-155deg);
|
| 161 |
+
}
|
| 162 |
+
#step9 {
|
| 163 |
+
transform: rotate(180deg) translateX(250px) rotate(-180deg);
|
| 164 |
+
}
|
| 165 |
+
#step10 {
|
| 166 |
+
transform: rotate(205deg) translateX(250px) rotate(-205deg);
|
| 167 |
+
}
|
| 168 |
+
#step1 {
|
| 169 |
+
transform: rotate(240deg) translateX(250px) rotate(-240deg);
|
| 170 |
+
}
|
| 171 |
+
#step2 {
|
| 172 |
+
transform: rotate(300deg) translateX(250px) rotate(-300deg);
|
| 173 |
+
}
|
| 174 |
+
#step3 {
|
| 175 |
+
transform: rotate(335deg) translateX(250px) rotate(-335deg);
|
| 176 |
+
}
|
| 177 |
+
a {
|
| 178 |
+
color: white; /* Link color */
|
| 179 |
+
text-decoration: none;
|
| 180 |
+
}
|
| 181 |
+
a:hover {
|
| 182 |
+
color: yellow; /* Color on hover */
|
| 183 |
+
text-decoration: underline; /* Underline on hover */
|
| 184 |
+
}
|
| 185 |
</style>
|
| 186 |
</head>
|
| 187 |
<body>
|
|
|
|
| 189 |
<h1></h1>
|
| 190 |
<div class="circle">
|
| 191 |
<div class="steps">
|
| 192 |
+
<div class="step" id="step2"><a href="/?page=ProblemStatement">1. Problem Statement</a></div>
|
| 193 |
+
<div class="step" id="step3"><a href="/?page=DataCollection">2. Data Collection</a></div>
|
| 194 |
+
<div class="step" id="step4"><a href="/?page=SimpleEDA">3. Simple EDA</a></div>
|
| 195 |
+
<div class="step" id="step5"><a href="/?page=DataPreprocessing">4. Data Pre-Processing</a></div>
|
| 196 |
+
<div class="step" id="step6"><a href="/?page=EDA">5. EDA</a></div>
|
| 197 |
+
<div class="step" id="step7"><a href="/?page=FeatureEngineering">6. Feature Engineering</a></div>
|
| 198 |
+
<div class="step" id="step8"><a href="/?page=ModelTraining">7. Training the Model</a></div>
|
| 199 |
+
<div class="step" id="step9"><a href="/?page=ModelTesting">8. Testing the Model</a></div>
|
| 200 |
+
<div class="step" id="step10"><a href="/?page=ModelDeployment">9. Model Deployment</a></div>
|
| 201 |
+
<div class="step" id="step1"><a href="/?page=Monitoring">10. Monitoring</a></div>
|
| 202 |
</div>
|
| 203 |
</div>
|
| 204 |
</div>
|
|
|
|
| 206 |
</html>
|
| 207 |
"""
|
| 208 |
|
| 209 |
+
# Streamlit: Display the HTML circle with properly spaced steps
|
| 210 |
st.markdown(html_code, unsafe_allow_html=True)
|
| 211 |
+
st.write(' ')
|
| 212 |
+
st.write(' ')
|
| 213 |
+
st.write(' ')
|
| 214 |
+
st.write(' ')
|
| 215 |
+
st.write(' ')
|
| 216 |
+
st.write(' ')
|
|
|
|
|
|
|
|
|