Spaces:
Sleeping
Sleeping
Update pages/3Life Cycle of Machine Learning Project.py
Browse files
pages/3Life Cycle of Machine Learning Project.py
CHANGED
|
@@ -47,27 +47,26 @@ st.markdown("""
|
|
| 47 |
|
| 48 |
import streamlit as st
|
| 49 |
|
| 50 |
-
# Inject custom CSS for the
|
| 51 |
st.markdown(
|
| 52 |
"""
|
| 53 |
<style>
|
| 54 |
-
.
|
| 55 |
position: relative;
|
| 56 |
-
width:
|
| 57 |
-
height: 900px; /* Reduced height to adjust bottom spacing */
|
| 58 |
margin: 0 auto;
|
| 59 |
display: flex;
|
| 60 |
-
|
| 61 |
align-items: center;
|
| 62 |
}
|
| 63 |
|
| 64 |
/* Styling for each phase (circle) */
|
| 65 |
.phase {
|
| 66 |
-
position:
|
| 67 |
width: 130px; /* Circle size */
|
| 68 |
height: 130px;
|
| 69 |
background-color: #F8F9FA; /* Light background */
|
| 70 |
-
color: #
|
| 71 |
border-radius: 50%;
|
| 72 |
display: flex;
|
| 73 |
justify-content: center;
|
|
@@ -76,21 +75,31 @@ st.markdown(
|
|
| 76 |
font-weight: bold;
|
| 77 |
text-align: center;
|
| 78 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 79 |
-
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
|
| 83 |
-
/*
|
| 84 |
-
.phase-1 {
|
| 85 |
-
.phase-2 {
|
| 86 |
-
.phase-3 {
|
| 87 |
-
.phase-4 {
|
| 88 |
-
.phase-5 {
|
| 89 |
-
.phase-6 {
|
| 90 |
-
.phase-7 {
|
| 91 |
-
.phase-8 {
|
| 92 |
-
.phase-9 {
|
| 93 |
-
.phase-10 {
|
| 94 |
|
| 95 |
.phase:hover {
|
| 96 |
transform: scale(1.1);
|
|
@@ -101,21 +110,30 @@ st.markdown(
|
|
| 101 |
unsafe_allow_html=True,
|
| 102 |
)
|
| 103 |
|
| 104 |
-
# HTML structure for the
|
| 105 |
st.markdown(
|
| 106 |
"""
|
| 107 |
-
<div class="
|
| 108 |
<!-- Phases -->
|
| 109 |
-
<
|
| 110 |
-
<
|
| 111 |
-
<
|
| 112 |
-
<
|
| 113 |
-
<
|
| 114 |
-
<
|
| 115 |
-
<
|
| 116 |
-
<
|
| 117 |
-
<
|
| 118 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
</div>
|
| 120 |
""",
|
| 121 |
unsafe_allow_html=True,
|
|
|
|
| 47 |
|
| 48 |
import streamlit as st
|
| 49 |
|
| 50 |
+
# Inject custom CSS for the straight vertical flowchart
|
| 51 |
st.markdown(
|
| 52 |
"""
|
| 53 |
<style>
|
| 54 |
+
.vertical-flowchart {
|
| 55 |
position: relative;
|
| 56 |
+
width: 400px; /* Layout width */
|
|
|
|
| 57 |
margin: 0 auto;
|
| 58 |
display: flex;
|
| 59 |
+
flex-direction: column;
|
| 60 |
align-items: center;
|
| 61 |
}
|
| 62 |
|
| 63 |
/* Styling for each phase (circle) */
|
| 64 |
.phase {
|
| 65 |
+
position: relative;
|
| 66 |
width: 130px; /* Circle size */
|
| 67 |
height: 130px;
|
| 68 |
background-color: #F8F9FA; /* Light background */
|
| 69 |
+
color: #000000; /* Black text */
|
| 70 |
border-radius: 50%;
|
| 71 |
display: flex;
|
| 72 |
justify-content: center;
|
|
|
|
| 75 |
font-weight: bold;
|
| 76 |
text-align: center;
|
| 77 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 78 |
+
margin-bottom: 10px; /* Space between steps */
|
| 79 |
+
font-family: Arial, sans-serif;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
/* Arrow styling */
|
| 83 |
+
.arrow {
|
| 84 |
+
position: relative;
|
| 85 |
+
width: 20px;
|
| 86 |
+
height: 20px;
|
| 87 |
+
margin: 10px 0;
|
| 88 |
+
font-size: 24px;
|
| 89 |
+
color: #000000; /* Black arrow */
|
| 90 |
}
|
| 91 |
|
| 92 |
+
/* Custom colors for each phase */
|
| 93 |
+
.phase-1 { background-color: #4CAF50; } /* Green */
|
| 94 |
+
.phase-2 { background-color: #03A9F4; } /* Blue */
|
| 95 |
+
.phase-3 { background-color: #FFC107; } /* Yellow */
|
| 96 |
+
.phase-4 { background-color: #FF7043; } /* Orange */
|
| 97 |
+
.phase-5 { background-color: #8BC34A; } /* Light Green */
|
| 98 |
+
.phase-6 { background-color: #673AB7; } /* Purple */
|
| 99 |
+
.phase-7 { background-color: #E91E63; } /* Pink */
|
| 100 |
+
.phase-8 { background-color: #607D8B; } /* Gray-Blue */
|
| 101 |
+
.phase-9 { background-color: #00BCD4; } /* Cyan */
|
| 102 |
+
.phase-10 { background-color: #FF9800; } /* Amber */
|
| 103 |
|
| 104 |
.phase:hover {
|
| 105 |
transform: scale(1.1);
|
|
|
|
| 110 |
unsafe_allow_html=True,
|
| 111 |
)
|
| 112 |
|
| 113 |
+
# HTML structure for the straight flowchart
|
| 114 |
st.markdown(
|
| 115 |
"""
|
| 116 |
+
<div class="vertical-flowchart">
|
| 117 |
<!-- Phases -->
|
| 118 |
+
<div class="phase phase-1">Problem Statement</div>
|
| 119 |
+
<div class="arrow">⬇️</div>
|
| 120 |
+
<div class="phase phase-2">Data Collection</div>
|
| 121 |
+
<div class="arrow">⬇️</div>
|
| 122 |
+
<div class="phase phase-3">Simple EDA</div>
|
| 123 |
+
<div class="arrow">⬇️</div>
|
| 124 |
+
<div class="phase phase-4">Data Preprocessing</div>
|
| 125 |
+
<div class="arrow">⬇️</div>
|
| 126 |
+
<div class="phase phase-5">EDA</div>
|
| 127 |
+
<div class="arrow">⬇️</div>
|
| 128 |
+
<div class="phase phase-6">Feature Engineering</div>
|
| 129 |
+
<div class="arrow">⬇️</div>
|
| 130 |
+
<div class="phase phase-7">Model Training</div>
|
| 131 |
+
<div class="arrow">⬇️</div>
|
| 132 |
+
<div class="phase phase-8">Model Testing</div>
|
| 133 |
+
<div class="arrow">⬇️</div>
|
| 134 |
+
<div class="phase phase-9">Deployment</div>
|
| 135 |
+
<div class="arrow">⬇️</div>
|
| 136 |
+
<div class="phase phase-10">Monitoring</div>
|
| 137 |
</div>
|
| 138 |
""",
|
| 139 |
unsafe_allow_html=True,
|