Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
| 3 |
st.set_page_config(
|
| 4 |
page_title="HomePage",
|
| 5 |
page_icon="🚀",
|
|
@@ -9,212 +10,91 @@ st.set_page_config(
|
|
| 9 |
# Global CSS for consistent styling across all pages
|
| 10 |
st.markdown("""
|
| 11 |
<style>
|
| 12 |
-
|
| 13 |
-
color: #
|
| 14 |
-
background-color: #FFFFFF; /* Optional: Set a fixed background color */
|
| 15 |
}
|
| 16 |
-
h1
|
| 17 |
-
|
|
|
|
| 18 |
}
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
</style>
|
| 38 |
-
|
| 39 |
-
unsafe_allow_html=True
|
| 40 |
-
)
|
| 41 |
|
| 42 |
-
#
|
| 43 |
-
st.markdown(
|
| 44 |
|
| 45 |
-
#
|
| 46 |
html_code = """
|
| 47 |
-
|
| 48 |
-
<html lang="en">
|
| 49 |
-
<head>
|
| 50 |
-
<meta charset="UTF-8">
|
| 51 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 52 |
-
<title>Machine Learning Project Life Cycle</title>
|
| 53 |
-
<style>
|
| 54 |
-
body {
|
| 55 |
-
font-family: Arial, sans-serif;
|
| 56 |
-
display: flex;
|
| 57 |
-
justify-content: center;
|
| 58 |
-
align-items: center;
|
| 59 |
-
height: 100vh;
|
| 60 |
-
margin: 0;
|
| 61 |
-
background-color: #f4f4f9;
|
| 62 |
-
}
|
| 63 |
-
.container {
|
| 64 |
-
text-align: center;
|
| 65 |
-
width: 80%;
|
| 66 |
-
max-width: 800px;
|
| 67 |
-
}
|
| 68 |
-
.circle {
|
| 69 |
-
position: relative;
|
| 70 |
-
width: 350px;
|
| 71 |
-
height: 350px;
|
| 72 |
-
margin: 20px auto;
|
| 73 |
-
border-radius: 50%;
|
| 74 |
-
display: flex;
|
| 75 |
-
justify-content: center;
|
| 76 |
-
align-items: center;
|
| 77 |
-
}
|
| 78 |
-
.steps {
|
| 79 |
-
position: absolute;
|
| 80 |
-
width: 100%;
|
| 81 |
-
height: 100%;
|
| 82 |
-
display: flex;
|
| 83 |
-
justify-content: center;
|
| 84 |
-
align-items: center;
|
| 85 |
-
flex-wrap: wrap;
|
| 86 |
-
}
|
| 87 |
-
.step {
|
| 88 |
-
background-color: #007bff;
|
| 89 |
-
color: #000; /* Default text color is black */
|
| 90 |
-
padding: 20px 40px; /* Increased padding for a bigger size */
|
| 91 |
-
border-radius: 8px;
|
| 92 |
-
cursor: pointer;
|
| 93 |
-
text-align: center;
|
| 94 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 95 |
-
transition: background-color 0.3s, color 0.3s; /* Added transition for text color */
|
| 96 |
-
position: absolute;
|
| 97 |
-
transform-origin: 50% 50%;
|
| 98 |
-
transition: transform 0.5s ease-in-out;
|
| 99 |
-
}
|
| 100 |
-
|
| 101 |
-
/* Step transformations to create the circle with the same size for each step */
|
| 102 |
-
#step1 {
|
| 103 |
-
background-color: #FFCCCC;
|
| 104 |
-
transform: rotate(0deg) translateX(180px) rotate(0deg); /* Increased translateX for bigger size */
|
| 105 |
-
}
|
| 106 |
-
#step2 {
|
| 107 |
-
background-color: #FFDD99;
|
| 108 |
-
transform: rotate(36deg) translateX(180px) rotate(-36deg);
|
| 109 |
-
}
|
| 110 |
-
#step3 {
|
| 111 |
-
background-color: #FFFF99;
|
| 112 |
-
transform: rotate(72deg) translateX(180px) rotate(-72deg);
|
| 113 |
-
}
|
| 114 |
-
#step4 {
|
| 115 |
-
background-color: #CCFFCC;
|
| 116 |
-
transform: rotate(108deg) translateX(180px) rotate(-108deg);
|
| 117 |
-
}
|
| 118 |
-
#step5 {
|
| 119 |
-
background-color: #CCE5FF;
|
| 120 |
-
transform: rotate(144deg) translateX(180px) rotate(-144deg);
|
| 121 |
-
}
|
| 122 |
-
#step6 {
|
| 123 |
-
background-color: #E5CCFF;
|
| 124 |
-
transform: rotate(180deg) translateX(180px) rotate(-180deg);
|
| 125 |
-
}
|
| 126 |
-
#step7 {
|
| 127 |
-
background-color: #FFD9E6;
|
| 128 |
-
transform: rotate(216deg) translateX(180px) rotate(-216deg);
|
| 129 |
-
}
|
| 130 |
-
#step8 {
|
| 131 |
-
background-color: #FFF5CC;
|
| 132 |
-
transform: rotate(252deg) translateX(180px) rotate(-252deg);
|
| 133 |
-
}
|
| 134 |
-
#step9 {
|
| 135 |
-
background-color: #D9FFF5;
|
| 136 |
-
transform: rotate(288deg) translateX(180px) rotate(-288deg);
|
| 137 |
-
}
|
| 138 |
-
#step10 {
|
| 139 |
-
background-color: #D9CCFF;
|
| 140 |
-
transform: rotate(324deg) translateX(180px) rotate(-324deg);
|
| 141 |
-
}
|
| 142 |
-
|
| 143 |
-
/* Hover Effect */
|
| 144 |
-
.step:hover {
|
| 145 |
-
background-color: #0056b3; /* Darker background on hover */
|
| 146 |
-
color: #000; /* Text color remains black on hover */
|
| 147 |
-
}
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
/* Rotate steps to form a circular layout */
|
| 151 |
-
#step4 {
|
| 152 |
-
transform: rotate(0deg) translateX(250px) rotate(0deg);
|
| 153 |
-
}
|
| 154 |
-
#step5 {
|
| 155 |
-
transform: rotate(25deg) translateX(250px) rotate(-25deg);
|
| 156 |
-
}
|
| 157 |
-
#step6 {
|
| 158 |
-
transform: rotate(60deg) translateX(250px) rotate(-60deg);
|
| 159 |
-
}
|
| 160 |
-
#step7 {
|
| 161 |
-
transform: rotate(120deg) translateX(250px) rotate(-120deg);
|
| 162 |
-
}
|
| 163 |
-
#step8 {
|
| 164 |
-
transform: rotate(155deg) translateX(250px) rotate(-155deg);
|
| 165 |
-
}
|
| 166 |
-
#step9 {
|
| 167 |
-
transform: rotate(180deg) translateX(250px) rotate(-180deg);
|
| 168 |
-
}
|
| 169 |
-
#step10 {
|
| 170 |
-
transform: rotate(205deg) translateX(250px) rotate(-205deg);
|
| 171 |
-
}
|
| 172 |
-
#step1 {
|
| 173 |
-
transform: rotate(240deg) translateX(250px) rotate(-240deg);
|
| 174 |
-
}
|
| 175 |
-
#step2 {
|
| 176 |
-
transform: rotate(300deg) translateX(250px) rotate(-300deg);
|
| 177 |
-
}
|
| 178 |
-
#step3 {
|
| 179 |
-
transform: rotate(335deg) translateX(250px) rotate(-335deg);
|
| 180 |
-
}
|
| 181 |
-
a {
|
| 182 |
-
color: white; /* Link color */
|
| 183 |
-
text-decoration: none;
|
| 184 |
-
}
|
| 185 |
-
a:hover {
|
| 186 |
-
color: yellow; /* Color on hover */
|
| 187 |
-
text-decoration: underline; /* Underline on hover */
|
| 188 |
-
}
|
| 189 |
-
</style>
|
| 190 |
-
</head>
|
| 191 |
-
<body>
|
| 192 |
-
<div class="container">
|
| 193 |
-
<h1></h1>
|
| 194 |
<div class="circle">
|
| 195 |
<div class="steps">
|
| 196 |
-
<div class="step" id="
|
| 197 |
-
<div class="step" id="
|
| 198 |
-
<div class="step" id="
|
| 199 |
-
<div class="step" id="
|
| 200 |
-
<div class="step" id="
|
| 201 |
-
<div class="step" id="
|
| 202 |
-
<div class="step" id="
|
| 203 |
-
<div class="step" id="
|
| 204 |
-
<div class="step" id="
|
| 205 |
-
<div class="step" id="
|
| 206 |
</div>
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
-
</body>
|
| 210 |
-
</html>
|
| 211 |
"""
|
| 212 |
|
| 213 |
-
#
|
| 214 |
st.markdown(html_code, unsafe_allow_html=True)
|
| 215 |
-
st.write(' ')
|
| 216 |
-
st.write(' ')
|
| 217 |
-
st.write(' ')
|
| 218 |
-
st.write(' ')
|
| 219 |
-
st.write(' ')
|
| 220 |
-
st.write(' ')
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# Page configuration
|
| 4 |
st.set_page_config(
|
| 5 |
page_title="HomePage",
|
| 6 |
page_icon="🚀",
|
|
|
|
| 10 |
# Global CSS for consistent styling across all pages
|
| 11 |
st.markdown("""
|
| 12 |
<style>
|
| 13 |
+
.stApp {
|
| 14 |
+
background-color: #FFFFFF;
|
|
|
|
| 15 |
}
|
| 16 |
+
h1 {
|
| 17 |
+
text-align: center;
|
| 18 |
+
color: #BB3385;
|
| 19 |
}
|
| 20 |
+
.circle-container {
|
| 21 |
+
display: flex;
|
| 22 |
+
justify-content: center;
|
| 23 |
+
align-items: center;
|
| 24 |
+
height: 100vh; /* Full height for centering */
|
| 25 |
+
margin-top: -100px; /* Adjust to perfectly center the circle */
|
| 26 |
}
|
| 27 |
+
.circle {
|
| 28 |
+
position: relative;
|
| 29 |
+
width: 350px;
|
| 30 |
+
height: 350px;
|
| 31 |
+
border-radius: 50%;
|
| 32 |
+
display: flex;
|
| 33 |
+
justify-content: center;
|
| 34 |
+
align-items: center;
|
| 35 |
}
|
| 36 |
+
.steps {
|
| 37 |
+
position: absolute;
|
| 38 |
+
width: 100%;
|
| 39 |
+
height: 100%;
|
| 40 |
+
display: flex;
|
| 41 |
+
justify-content: center;
|
| 42 |
+
align-items: center;
|
| 43 |
+
}
|
| 44 |
+
.step {
|
| 45 |
+
position: absolute;
|
| 46 |
+
width: 120px;
|
| 47 |
+
height: 50px;
|
| 48 |
+
background-color: #007bff;
|
| 49 |
+
color: white;
|
| 50 |
+
border-radius: 25px;
|
| 51 |
+
display: flex;
|
| 52 |
+
justify-content: center;
|
| 53 |
+
align-items: center;
|
| 54 |
+
text-align: center;
|
| 55 |
+
cursor: pointer;
|
| 56 |
+
transform-origin: 50% 50%;
|
| 57 |
+
transition: transform 0.3s ease, background-color 0.3s ease;
|
| 58 |
}
|
| 59 |
+
.step:hover {
|
| 60 |
+
background-color: #0056b3;
|
| 61 |
+
}
|
| 62 |
+
/* Rotate steps to form a circular layout */
|
| 63 |
+
#step1 { transform: rotate(0deg) translateX(150px) rotate(-0deg); }
|
| 64 |
+
#step2 { transform: rotate(36deg) translateX(150px) rotate(-36deg); }
|
| 65 |
+
#step3 { transform: rotate(72deg) translateX(150px) rotate(-72deg); }
|
| 66 |
+
#step4 { transform: rotate(108deg) translateX(150px) rotate(-108deg); }
|
| 67 |
+
#step5 { transform: rotate(144deg) translateX(150px) rotate(-144deg); }
|
| 68 |
+
#step6 { transform: rotate(180deg) translateX(150px) rotate(-180deg); }
|
| 69 |
+
#step7 { transform: rotate(216deg) translateX(150px) rotate(-216deg); }
|
| 70 |
+
#step8 { transform: rotate(252deg) translateX(150px) rotate(-252deg); }
|
| 71 |
+
#step9 { transform: rotate(288deg) translateX(150px) rotate(-288deg); }
|
| 72 |
+
#step10 { transform: rotate(324deg) translateX(150px) rotate(-324deg); }
|
| 73 |
</style>
|
| 74 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
# Page title
|
| 77 |
+
st.markdown('<h1>Life Cycle of End-to-End ML Project</h1>', unsafe_allow_html=True)
|
| 78 |
|
| 79 |
+
# HTML for buttons in circular layout
|
| 80 |
html_code = """
|
| 81 |
+
<div class="circle-container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
<div class="circle">
|
| 83 |
<div class="steps">
|
| 84 |
+
<div class="step" id="step1"><a href="/?page=ProblemStatement" style="color:white; text-decoration:none;">Problem Statement</a></div>
|
| 85 |
+
<div class="step" id="step2"><a href="/?page=DataCollection" style="color:white; text-decoration:none;">Data Collection</a></div>
|
| 86 |
+
<div class="step" id="step3"><a href="/?page=SimpleEDA" style="color:white; text-decoration:none;">Simple EDA</a></div>
|
| 87 |
+
<div class="step" id="step4"><a href="/?page=DataPreprocessing" style="color:white; text-decoration:none;">Data Preprocessing</a></div>
|
| 88 |
+
<div class="step" id="step5"><a href="/?page=EDA" style="color:white; text-decoration:none;">EDA</a></div>
|
| 89 |
+
<div class="step" id="step6"><a href="/?page=FeatureEngineering" style="color:white; text-decoration:none;">Feature Engineering</a></div>
|
| 90 |
+
<div class="step" id="step7"><a href="/?page=ModelTraining" style="color:white; text-decoration:none;">Model Training</a></div>
|
| 91 |
+
<div class="step" id="step8"><a href="/?page=ModelTesting" style="color:white; text-decoration:none;">Model Testing</a></div>
|
| 92 |
+
<div class="step" id="step9"><a href="/?page=ModelDeployment" style="color:white; text-decoration:none;">Model Deployment</a></div>
|
| 93 |
+
<div class="step" id="step10"><a href="/?page=Monitoring" style="color:white; text-decoration:none;">Monitoring</a></div>
|
| 94 |
</div>
|
| 95 |
</div>
|
| 96 |
</div>
|
|
|
|
|
|
|
| 97 |
"""
|
| 98 |
|
| 99 |
+
# Render the HTML
|
| 100 |
st.markdown(html_code, unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|