Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
|
| 4 |
st.set_page_config(
|
| 5 |
page_title="HomePage",
|
| 6 |
page_icon="🚀",
|
| 7 |
layout="wide"
|
| 8 |
)
|
|
|
|
| 9 |
# Global CSS for consistent styling across all pages
|
| 10 |
st.markdown("""
|
| 11 |
<style>
|
|
@@ -39,13 +39,10 @@ st.markdown(
|
|
| 39 |
unsafe_allow_html=True
|
| 40 |
)
|
| 41 |
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
-
<div style="text-align: center; margin-top: 20px;">
|
| 45 |
-
<h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
st.markdown(
|
| 50 |
"""
|
| 51 |
<style>
|
|
@@ -57,7 +54,6 @@ st.markdown(
|
|
| 57 |
flex-direction: column;
|
| 58 |
align-items: center;
|
| 59 |
}
|
| 60 |
-
|
| 61 |
/* Styling for each phase (rectangle button) */
|
| 62 |
.phase {
|
| 63 |
position: relative;
|
|
@@ -78,7 +74,6 @@ st.markdown(
|
|
| 78 |
transition: transform 0.3s ease, background-color 0.3s ease;
|
| 79 |
color: black; /* Always black text */
|
| 80 |
}
|
| 81 |
-
|
| 82 |
/* Colors for each phase */
|
| 83 |
.phase-1 { background-color: #E6F4EA; } /* Light Green */
|
| 84 |
.phase-2 { background-color: #E0F7FA; } /* Light Blue */
|
|
@@ -90,20 +85,17 @@ st.markdown(
|
|
| 90 |
.phase-8 { background-color: #CFD8DC; } /* Light Gray-Blue */
|
| 91 |
.phase-9 { background-color: #B2EBF2; } /* Light Cyan */
|
| 92 |
.phase-10 { background-color: #FFE082; } /* Light Amber */
|
| 93 |
-
|
| 94 |
.phase:hover {
|
| 95 |
transform: scale(1.05);
|
| 96 |
background-color: #F0F0F0; /* Slightly lighter on hover */
|
| 97 |
color: black; /* Ensure text remains black */
|
| 98 |
}
|
| 99 |
-
|
| 100 |
/* Arrow styling */
|
| 101 |
.arrow {
|
| 102 |
font-size: 24px; /* Arrow size */
|
| 103 |
color: #4F4F4F; /* Dark arrow color */
|
| 104 |
margin: 10px 0; /* Space for arrow */
|
| 105 |
}
|
| 106 |
-
|
| 107 |
/* Styling for descriptions */
|
| 108 |
.description {
|
| 109 |
display: none; /* Hidden by default */
|
|
@@ -116,7 +108,6 @@ st.markdown(
|
|
| 116 |
padding: 10px;
|
| 117 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 118 |
}
|
| 119 |
-
|
| 120 |
.phase:hover + .description {
|
| 121 |
display: block; /* Show description on hover */
|
| 122 |
}
|
|
@@ -131,54 +122,52 @@ st.markdown(
|
|
| 131 |
<div class="vertical-flowchart">
|
| 132 |
<!-- Problem Statement -->
|
| 133 |
<a href="/problem-statement" class="phase phase-1" target="_self">Problem Statement</a>
|
| 134 |
-
<div class="description">
|
| 135 |
<div class="arrow">⬇️</div>
|
| 136 |
|
| 137 |
<!-- Data Collection -->
|
| 138 |
<a href="/data-collection" class="phase phase-2" target="_self">Data Collection</a>
|
| 139 |
-
<div class="description">
|
| 140 |
<div class="arrow">⬇️</div>
|
| 141 |
|
| 142 |
<!-- Simple EDA -->
|
| 143 |
<a href="/simple-eda" class="phase phase-3" target="_self">Simple EDA</a>
|
| 144 |
-
<div class="description">Perform
|
| 145 |
<div class="arrow">⬇️</div>
|
| 146 |
|
| 147 |
<!-- Data Preprocessing -->
|
| 148 |
<a href="/data-preprocessing" class="phase phase-4" target="_self">Data Preprocessing</a>
|
| 149 |
-
<div class="description">Clean the dataset by handling missing values, outliers, and inconsistencies
|
| 150 |
-
|
| 151 |
-
</div>
|
| 152 |
<div class="arrow">⬇️</div>
|
| 153 |
|
| 154 |
<!-- EDA -->
|
| 155 |
<a href="/eda" class="phase phase-5" target="_self">EDA</a>
|
| 156 |
-
<div class="description">Perform
|
| 157 |
<div class="arrow">⬇️</div>
|
| 158 |
|
| 159 |
<!-- Feature Engineering -->
|
| 160 |
<a href="/feature-engineering" class="phase phase-6" target="_self">Feature Engineering</a>
|
| 161 |
-
<div class="description">Create or select meaningful features, scale variables, and reduce dimensionality to
|
| 162 |
<div class="arrow">⬇️</div>
|
| 163 |
|
| 164 |
<!-- Model Training -->
|
| 165 |
<a href="/model-training" class="phase phase-7" target="_self">Model Training</a>
|
| 166 |
-
<div class="description">
|
| 167 |
<div class="arrow">⬇️</div>
|
| 168 |
|
| 169 |
<!-- Model Testing -->
|
| 170 |
<a href="/model-testing" class="phase phase-8" target="_self">Model Testing</a>
|
| 171 |
-
<div class="description">Evaluate the trained model on a validation or test dataset
|
| 172 |
<div class="arrow">⬇️</div>
|
| 173 |
|
| 174 |
<!-- Deployment -->
|
| 175 |
<a href="/deployment" class="phase phase-9" target="_self">Deployment</a>
|
| 176 |
-
<div class="description">Deploy the
|
| 177 |
<div class="arrow">⬇️</div>
|
| 178 |
|
| 179 |
<!-- Monitoring -->
|
| 180 |
<a href="/monitoring" class="phase phase-10" target="_self">Monitoring</a>
|
| 181 |
-
<div class="description">
|
| 182 |
</div>
|
| 183 |
""",
|
| 184 |
unsafe_allow_html=True,
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
| 3 |
st.set_page_config(
|
| 4 |
page_title="HomePage",
|
| 5 |
page_icon="🚀",
|
| 6 |
layout="wide"
|
| 7 |
)
|
| 8 |
+
|
| 9 |
# Global CSS for consistent styling across all pages
|
| 10 |
st.markdown("""
|
| 11 |
<style>
|
|
|
|
| 39 |
unsafe_allow_html=True
|
| 40 |
)
|
| 41 |
|
| 42 |
+
# Title of the page
|
| 43 |
+
st.markdown("""<div style="text-align: center; margin-top: 20px;"><h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
|
| 44 |
|
| 45 |
+
# Inject custom CSS for the vertical flowchart
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
st.markdown(
|
| 47 |
"""
|
| 48 |
<style>
|
|
|
|
| 54 |
flex-direction: column;
|
| 55 |
align-items: center;
|
| 56 |
}
|
|
|
|
| 57 |
/* Styling for each phase (rectangle button) */
|
| 58 |
.phase {
|
| 59 |
position: relative;
|
|
|
|
| 74 |
transition: transform 0.3s ease, background-color 0.3s ease;
|
| 75 |
color: black; /* Always black text */
|
| 76 |
}
|
|
|
|
| 77 |
/* Colors for each phase */
|
| 78 |
.phase-1 { background-color: #E6F4EA; } /* Light Green */
|
| 79 |
.phase-2 { background-color: #E0F7FA; } /* Light Blue */
|
|
|
|
| 85 |
.phase-8 { background-color: #CFD8DC; } /* Light Gray-Blue */
|
| 86 |
.phase-9 { background-color: #B2EBF2; } /* Light Cyan */
|
| 87 |
.phase-10 { background-color: #FFE082; } /* Light Amber */
|
|
|
|
| 88 |
.phase:hover {
|
| 89 |
transform: scale(1.05);
|
| 90 |
background-color: #F0F0F0; /* Slightly lighter on hover */
|
| 91 |
color: black; /* Ensure text remains black */
|
| 92 |
}
|
|
|
|
| 93 |
/* Arrow styling */
|
| 94 |
.arrow {
|
| 95 |
font-size: 24px; /* Arrow size */
|
| 96 |
color: #4F4F4F; /* Dark arrow color */
|
| 97 |
margin: 10px 0; /* Space for arrow */
|
| 98 |
}
|
|
|
|
| 99 |
/* Styling for descriptions */
|
| 100 |
.description {
|
| 101 |
display: none; /* Hidden by default */
|
|
|
|
| 108 |
padding: 10px;
|
| 109 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 110 |
}
|
|
|
|
| 111 |
.phase:hover + .description {
|
| 112 |
display: block; /* Show description on hover */
|
| 113 |
}
|
|
|
|
| 122 |
<div class="vertical-flowchart">
|
| 123 |
<!-- Problem Statement -->
|
| 124 |
<a href="/problem-statement" class="phase phase-1" target="_self">Problem Statement</a>
|
| 125 |
+
<div class="description">Clearly define the issue, the data used, and the expected outcome.</div>
|
| 126 |
<div class="arrow">⬇️</div>
|
| 127 |
|
| 128 |
<!-- Data Collection -->
|
| 129 |
<a href="/data-collection" class="phase phase-2" target="_self">Data Collection</a>
|
| 130 |
+
<div class="description">Collect relevant data from multiple sources, ensuring it aligns with the problem statement.</div>
|
| 131 |
<div class="arrow">⬇️</div>
|
| 132 |
|
| 133 |
<!-- Simple EDA -->
|
| 134 |
<a href="/simple-eda" class="phase phase-3" target="_self">Simple EDA</a>
|
| 135 |
+
<div class="description">Perform initial exploratory analysis to assess data quality, structure, and appearance.</div>
|
| 136 |
<div class="arrow">⬇️</div>
|
| 137 |
|
| 138 |
<!-- Data Preprocessing -->
|
| 139 |
<a href="/data-preprocessing" class="phase phase-4" target="_self">Data Preprocessing</a>
|
| 140 |
+
<div class="description">Clean the dataset by handling missing values, outliers, and inconsistencies, transforming it into a suitable format.</div>
|
|
|
|
|
|
|
| 141 |
<div class="arrow">⬇️</div>
|
| 142 |
|
| 143 |
<!-- EDA -->
|
| 144 |
<a href="/eda" class="phase phase-5" target="_self">EDA</a>
|
| 145 |
+
<div class="description">Perform detailed analysis to uncover trends, patterns, and relationships that will guide model building.</div>
|
| 146 |
<div class="arrow">⬇️</div>
|
| 147 |
|
| 148 |
<!-- Feature Engineering -->
|
| 149 |
<a href="/feature-engineering" class="phase phase-6" target="_self">Feature Engineering</a>
|
| 150 |
+
<div class="description">Create or select meaningful features, scale variables, and reduce dimensionality to enhance model performance.</div>
|
| 151 |
<div class="arrow">⬇️</div>
|
| 152 |
|
| 153 |
<!-- Model Training -->
|
| 154 |
<a href="/model-training" class="phase phase-7" target="_self">Model Training</a>
|
| 155 |
+
<div class="description">Train machine learning models on the prepared data and optimize parameters for improved performance.</div>
|
| 156 |
<div class="arrow">⬇️</div>
|
| 157 |
|
| 158 |
<!-- Model Testing -->
|
| 159 |
<a href="/model-testing" class="phase phase-8" target="_self">Model Testing</a>
|
| 160 |
+
<div class="description">Evaluate the trained model on a validation or test dataset to assess accuracy, precision, and other metrics.</div>
|
| 161 |
<div class="arrow">⬇️</div>
|
| 162 |
|
| 163 |
<!-- Deployment -->
|
| 164 |
<a href="/deployment" class="phase phase-9" target="_self">Deployment</a>
|
| 165 |
+
<div class="description">Deploy the model into a live system for real-time or batch processing of new data.</div>
|
| 166 |
<div class="arrow">⬇️</div>
|
| 167 |
|
| 168 |
<!-- Monitoring -->
|
| 169 |
<a href="/monitoring" class="phase phase-10" target="_self">Monitoring</a>
|
| 170 |
+
<div class="description">Track model performance in production, addressing issues like data drift and performance degradation.</div>
|
| 171 |
</div>
|
| 172 |
""",
|
| 173 |
unsafe_allow_html=True,
|