Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -96,69 +96,114 @@ st.markdown(
|
|
| 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 */
|
| 102 |
-
width: 300px;
|
| 103 |
-
margin-top: -10px;
|
| 104 |
-
background-color: #F9F9F9;
|
| 105 |
-
color: #333;
|
| 106 |
-
font-size: 14px;
|
| 107 |
-
border-radius: 5px;
|
| 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 |
-
}
|
| 114 |
</style>
|
| 115 |
""",
|
| 116 |
unsafe_allow_html=True,
|
| 117 |
)
|
| 118 |
|
| 119 |
-
# HTML structure for the vertical flowchart with descriptions
|
| 120 |
st.markdown(
|
| 121 |
"""
|
| 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 |
<!-- Data Collection -->
|
| 128 |
<a href="/data-collection" class="phase phase-2" target="_self">Data Collection</a>
|
| 129 |
-
<div class="description">Collect relevant data from multiple sources, ensuring it aligns with the problem statement.</div>
|
| 130 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
<!-- Simple EDA -->
|
| 132 |
<a href="/simple-eda" class="phase phase-3" target="_self">Simple EDA</a>
|
| 133 |
-
<div class="description">Perform initial exploratory analysis to assess data quality, structure, and appearance.</div>
|
| 134 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
<!-- Data Preprocessing -->
|
| 136 |
<a href="/data-preprocessing" class="phase phase-4" target="_self">Data Preprocessing</a>
|
| 137 |
-
<div class="description">Clean the dataset by handling missing values, outliers, and inconsistencies, transforming it into a suitable format.</div>
|
| 138 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
<!-- EDA -->
|
| 140 |
<a href="/eda" class="phase phase-5" target="_self">EDA</a>
|
| 141 |
-
<div class="description">Perform detailed analysis to uncover trends, patterns, and relationships that will guide model building.</div>
|
| 142 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
<!-- Feature Engineering -->
|
| 144 |
<a href="/feature-engineering" class="phase phase-6" target="_self">Feature Engineering</a>
|
| 145 |
-
<div class="description">Create or select meaningful features, scale variables, and reduce dimensionality to enhance model performance.</div>
|
| 146 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
<!-- Model Training -->
|
| 148 |
<a href="/model-training" class="phase phase-7" target="_self">Model Training</a>
|
| 149 |
-
<div class="description">Train machine learning models on the prepared data and optimize parameters for improved performance.</div>
|
| 150 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
<!-- Model Testing -->
|
| 152 |
<a href="/model-testing" class="phase phase-8" target="_self">Model Testing</a>
|
| 153 |
-
<div class="description">Evaluate the trained model on a validation or test dataset to assess accuracy, precision, and other metrics.</div>
|
| 154 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
<!-- Deployment -->
|
| 156 |
<a href="/deployment" class="phase phase-9" target="_self">Deployment</a>
|
| 157 |
-
<div class="description">Deploy the trained model into a live system for real-time or batch processing of new data.</div>
|
| 158 |
<div class="arrow">⬇️</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
<!-- Monitoring -->
|
| 160 |
<a href="/monitoring" class="phase phase-10" target="_self">Monitoring</a>
|
| 161 |
-
<div class="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
</div>
|
| 163 |
""",
|
| 164 |
unsafe_allow_html=True,
|
|
|
|
| 96 |
color: #4F4F4F; /* Dark arrow color */
|
| 97 |
margin: 10px 0; /* Space for arrow */
|
| 98 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
</style>
|
| 100 |
""",
|
| 101 |
unsafe_allow_html=True,
|
| 102 |
)
|
| 103 |
|
| 104 |
+
# HTML structure for the vertical flowchart with descriptions using Streamlit's expander
|
| 105 |
st.markdown(
|
| 106 |
"""
|
| 107 |
<div class="vertical-flowchart">
|
| 108 |
<!-- Problem Statement -->
|
| 109 |
<a href="/problem-statement" class="phase phase-1" target="_self">Problem Statement</a>
|
|
|
|
| 110 |
<div class="arrow">⬇️</div>
|
| 111 |
+
<div>
|
| 112 |
+
<details>
|
| 113 |
+
<summary>Click to View Description</summary>
|
| 114 |
+
Clearly define the issue, the data used, and the expected outcome.
|
| 115 |
+
</details>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
<!-- Data Collection -->
|
| 119 |
<a href="/data-collection" class="phase phase-2" target="_self">Data Collection</a>
|
|
|
|
| 120 |
<div class="arrow">⬇️</div>
|
| 121 |
+
<div>
|
| 122 |
+
<details>
|
| 123 |
+
<summary>Click to View Description</summary>
|
| 124 |
+
Collect relevant data from multiple sources, ensuring it aligns with the problem statement.
|
| 125 |
+
</details>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
<!-- Simple EDA -->
|
| 129 |
<a href="/simple-eda" class="phase phase-3" target="_self">Simple EDA</a>
|
|
|
|
| 130 |
<div class="arrow">⬇️</div>
|
| 131 |
+
<div>
|
| 132 |
+
<details>
|
| 133 |
+
<summary>Click to View Description</summary>
|
| 134 |
+
Perform initial exploratory analysis to assess data quality, structure, and appearance.
|
| 135 |
+
</details>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
<!-- Data Preprocessing -->
|
| 139 |
<a href="/data-preprocessing" class="phase phase-4" target="_self">Data Preprocessing</a>
|
|
|
|
| 140 |
<div class="arrow">⬇️</div>
|
| 141 |
+
<div>
|
| 142 |
+
<details>
|
| 143 |
+
<summary>Click to View Description</summary>
|
| 144 |
+
Clean the dataset by handling missing values, outliers, and inconsistencies, transforming it into a suitable format.
|
| 145 |
+
</details>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
<!-- EDA -->
|
| 149 |
<a href="/eda" class="phase phase-5" target="_self">EDA</a>
|
|
|
|
| 150 |
<div class="arrow">⬇️</div>
|
| 151 |
+
<div>
|
| 152 |
+
<details>
|
| 153 |
+
<summary>Click to View Description</summary>
|
| 154 |
+
Perform detailed analysis to uncover trends, patterns, and relationships that will guide model building.
|
| 155 |
+
</details>
|
| 156 |
+
</div>
|
| 157 |
+
|
| 158 |
<!-- Feature Engineering -->
|
| 159 |
<a href="/feature-engineering" class="phase phase-6" target="_self">Feature Engineering</a>
|
|
|
|
| 160 |
<div class="arrow">⬇️</div>
|
| 161 |
+
<div>
|
| 162 |
+
<details>
|
| 163 |
+
<summary>Click to View Description</summary>
|
| 164 |
+
Create or select meaningful features, scale variables, and reduce dimensionality to enhance model performance.
|
| 165 |
+
</details>
|
| 166 |
+
</div>
|
| 167 |
+
|
| 168 |
<!-- Model Training -->
|
| 169 |
<a href="/model-training" class="phase phase-7" target="_self">Model Training</a>
|
|
|
|
| 170 |
<div class="arrow">⬇️</div>
|
| 171 |
+
<div>
|
| 172 |
+
<details>
|
| 173 |
+
<summary>Click to View Description</summary>
|
| 174 |
+
Train machine learning models on the prepared data and optimize parameters for improved performance.
|
| 175 |
+
</details>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
<!-- Model Testing -->
|
| 179 |
<a href="/model-testing" class="phase phase-8" target="_self">Model Testing</a>
|
|
|
|
| 180 |
<div class="arrow">⬇️</div>
|
| 181 |
+
<div>
|
| 182 |
+
<details>
|
| 183 |
+
<summary>Click to View Description</summary>
|
| 184 |
+
Evaluate the trained model on a validation or test dataset to assess accuracy, precision, and other metrics.
|
| 185 |
+
</details>
|
| 186 |
+
</div>
|
| 187 |
+
|
| 188 |
<!-- Deployment -->
|
| 189 |
<a href="/deployment" class="phase phase-9" target="_self">Deployment</a>
|
|
|
|
| 190 |
<div class="arrow">⬇️</div>
|
| 191 |
+
<div>
|
| 192 |
+
<details>
|
| 193 |
+
<summary>Click to View Description</summary>
|
| 194 |
+
Deploy the trained model into a live system for real-time or batch processing of new data.
|
| 195 |
+
</details>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
<!-- Monitoring -->
|
| 199 |
<a href="/monitoring" class="phase phase-10" target="_self">Monitoring</a>
|
| 200 |
+
<div class="arrow">⬇️</div>
|
| 201 |
+
<div>
|
| 202 |
+
<details>
|
| 203 |
+
<summary>Click to View Description</summary>
|
| 204 |
+
Track model performance in production, addressing issues like data drift and performance degradation.
|
| 205 |
+
</details>
|
| 206 |
+
</div>
|
| 207 |
</div>
|
| 208 |
""",
|
| 209 |
unsafe_allow_html=True,
|