Spaces:
Sleeping
Sleeping
Update pages/Life cycle of ML.py
Browse files- pages/Life cycle of ML.py +70 -34
pages/Life cycle of ML.py
CHANGED
|
@@ -60,81 +60,117 @@ def add_custom_css():
|
|
| 60 |
</style>
|
| 61 |
""", unsafe_allow_html=True)
|
| 62 |
|
| 63 |
-
# Lifecycle Pages
|
| 64 |
def home_page():
|
| 65 |
st.title("🚀 Machine Learning Lifecycle")
|
| 66 |
-
st.write("Explore the stages of the ML lifecycle by clicking on the arrows below.")
|
| 67 |
|
| 68 |
-
# Arrow buttons container
|
| 69 |
st.markdown('<div class="arrow-container">', unsafe_allow_html=True)
|
| 70 |
-
if st.button("1. Problem
|
| 71 |
navigate_to("problem_definition")
|
| 72 |
if st.button("2. Data Collection", key="data_collection"):
|
| 73 |
navigate_to("data_collection")
|
| 74 |
-
if st.button("3.
|
| 75 |
-
navigate_to("
|
| 76 |
-
if st.button("4.
|
| 77 |
-
navigate_to("
|
| 78 |
-
if st.button("5.
|
| 79 |
-
navigate_to("
|
| 80 |
-
if st.button("6.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
navigate_to("deployment")
|
|
|
|
|
|
|
| 82 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 83 |
|
| 84 |
-
def
|
| 85 |
-
st.title("📌 Problem
|
| 86 |
-
st.write("
|
| 87 |
st.markdown('<div class="back-btn" onclick="location.href=\'#\'">⬅️ Back to Home</div>', unsafe_allow_html=True)
|
| 88 |
if st.button("⬅️ Back to Home"):
|
| 89 |
navigate_to("home")
|
| 90 |
|
| 91 |
def data_collection_page():
|
| 92 |
st.title("📊 Data Collection")
|
| 93 |
-
st.write("
|
| 94 |
if st.button("⬅️ Back to Home"):
|
| 95 |
navigate_to("home")
|
| 96 |
|
| 97 |
-
def
|
| 98 |
-
st.title("🔧
|
| 99 |
-
st.write("
|
| 100 |
if st.button("⬅️ Back to Home"):
|
| 101 |
navigate_to("home")
|
| 102 |
|
| 103 |
-
def
|
| 104 |
-
st.title("🤖
|
| 105 |
-
st.write("
|
| 106 |
if st.button("⬅️ Back to Home"):
|
| 107 |
navigate_to("home")
|
| 108 |
|
| 109 |
-
def
|
| 110 |
-
st.title("📈
|
| 111 |
-
st.write("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
if st.button("⬅️ Back to Home"):
|
| 113 |
navigate_to("home")
|
| 114 |
|
| 115 |
def deployment_page():
|
| 116 |
-
st.title("
|
| 117 |
-
st.write("
|
| 118 |
if st.button("⬅️ Back to Home"):
|
| 119 |
navigate_to("home")
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
def main():
|
| 122 |
add_custom_css()
|
| 123 |
|
| 124 |
if st.session_state.current_page == "home":
|
| 125 |
home_page()
|
| 126 |
-
elif st.session_state.current_page == "
|
| 127 |
-
|
| 128 |
elif st.session_state.current_page == "data_collection":
|
| 129 |
data_collection_page()
|
| 130 |
-
elif st.session_state.current_page == "
|
| 131 |
-
|
| 132 |
-
elif st.session_state.current_page == "
|
| 133 |
-
|
| 134 |
-
elif st.session_state.current_page == "
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
elif st.session_state.current_page == "deployment":
|
| 137 |
deployment_page()
|
|
|
|
|
|
|
| 138 |
|
| 139 |
if __name__ == "__main__":
|
| 140 |
main()
|
|
|
|
| 60 |
</style>
|
| 61 |
""", unsafe_allow_html=True)
|
| 62 |
|
|
|
|
| 63 |
def home_page():
|
| 64 |
st.title("🚀 Machine Learning Lifecycle")
|
|
|
|
| 65 |
|
|
|
|
| 66 |
st.markdown('<div class="arrow-container">', unsafe_allow_html=True)
|
| 67 |
+
if st.button("1. Problem Statement", key="problem_statement"):
|
| 68 |
navigate_to("problem_definition")
|
| 69 |
if st.button("2. Data Collection", key="data_collection"):
|
| 70 |
navigate_to("data_collection")
|
| 71 |
+
if st.button("3. Simple EDA", key="simple_eda"):
|
| 72 |
+
navigate_to("simple_eda")
|
| 73 |
+
if st.button("4. Data Pre-processing", key="data_pre-processing"):
|
| 74 |
+
navigate_to("data_pre-processing")
|
| 75 |
+
if st.button("5. EDA", key="eda"):
|
| 76 |
+
navigate_to("eda")
|
| 77 |
+
if st.button("6. Feature Engineering", key="feature_engineering"):
|
| 78 |
+
navigate_to("feature_engineering")
|
| 79 |
+
if st.button("7. Training Model", key="training_model"):
|
| 80 |
+
navigate_to("training_model")
|
| 81 |
+
if st.button("8. Testing", key="testing"):
|
| 82 |
+
navigate_to("testing")
|
| 83 |
+
if st.button("9. Deployment", key="deployment"):
|
| 84 |
navigate_to("deployment")
|
| 85 |
+
if st.button("10. Monitoring", key="monitoring"):
|
| 86 |
+
navigate_to("monitoring")
|
| 87 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 88 |
|
| 89 |
+
def problem_statement_page():
|
| 90 |
+
st.title("📌 Problem Statement")
|
| 91 |
+
st.write("")
|
| 92 |
st.markdown('<div class="back-btn" onclick="location.href=\'#\'">⬅️ Back to Home</div>', unsafe_allow_html=True)
|
| 93 |
if st.button("⬅️ Back to Home"):
|
| 94 |
navigate_to("home")
|
| 95 |
|
| 96 |
def data_collection_page():
|
| 97 |
st.title("📊 Data Collection")
|
| 98 |
+
st.write("")
|
| 99 |
if st.button("⬅️ Back to Home"):
|
| 100 |
navigate_to("home")
|
| 101 |
|
| 102 |
+
def simple_eda_page():
|
| 103 |
+
st.title("🔧 Simple EDA")
|
| 104 |
+
st.write("")
|
| 105 |
if st.button("⬅️ Back to Home"):
|
| 106 |
navigate_to("home")
|
| 107 |
|
| 108 |
+
def data_pre-processing_page():
|
| 109 |
+
st.title("🤖 Data Pre-processing")
|
| 110 |
+
st.write("")
|
| 111 |
if st.button("⬅️ Back to Home"):
|
| 112 |
navigate_to("home")
|
| 113 |
|
| 114 |
+
def eda_page():
|
| 115 |
+
st.title("📈 EDA")
|
| 116 |
+
st.write("")
|
| 117 |
+
if st.button("⬅️ Back to Home"):
|
| 118 |
+
navigate_to("home")
|
| 119 |
+
|
| 120 |
+
def feature_engineering_page():
|
| 121 |
+
st.title("🌐Feature Engineering")
|
| 122 |
+
st.write("")
|
| 123 |
+
if st.button("⬅️ Back to Home"):
|
| 124 |
+
navigate_to("home")
|
| 125 |
+
|
| 126 |
+
def training_model_page():
|
| 127 |
+
st.title("Training Model")
|
| 128 |
+
st.write("")
|
| 129 |
+
if st.button("⬅️ Back to Home"):
|
| 130 |
+
navigate_to("home")
|
| 131 |
+
|
| 132 |
+
def testing_page():
|
| 133 |
+
st.title("🌐Testing")
|
| 134 |
+
st.write("")
|
| 135 |
if st.button("⬅️ Back to Home"):
|
| 136 |
navigate_to("home")
|
| 137 |
|
| 138 |
def deployment_page():
|
| 139 |
+
st.title("🔧Deployment")
|
| 140 |
+
st.write("")
|
| 141 |
if st.button("⬅️ Back to Home"):
|
| 142 |
navigate_to("home")
|
| 143 |
|
| 144 |
+
def monitoring_page():
|
| 145 |
+
st.title("🤖Monitoring")
|
| 146 |
+
st.write("")
|
| 147 |
+
if st.button("⬅️ Back to Home"):
|
| 148 |
+
navigate_to("home")
|
| 149 |
def main():
|
| 150 |
add_custom_css()
|
| 151 |
|
| 152 |
if st.session_state.current_page == "home":
|
| 153 |
home_page()
|
| 154 |
+
elif st.session_state.current_page == "problem_statement":
|
| 155 |
+
problem_statement_page()
|
| 156 |
elif st.session_state.current_page == "data_collection":
|
| 157 |
data_collection_page()
|
| 158 |
+
elif st.session_state.current_page == "simple_eda":
|
| 159 |
+
simple_eda_page()
|
| 160 |
+
elif st.session_state.current_page == "data_pre-processing":
|
| 161 |
+
data_pre-processing_page()
|
| 162 |
+
elif st.session_state.current_page == "eda":
|
| 163 |
+
eda_page()
|
| 164 |
+
elif st.session_state.current_page == "feature_engineering":
|
| 165 |
+
feature_engineering_page()
|
| 166 |
+
elif st.session_state.current_page == "training_model":
|
| 167 |
+
training_model_page()
|
| 168 |
+
elif st.session_state.current_page == "testing":
|
| 169 |
+
testing_page()
|
| 170 |
elif st.session_state.current_page == "deployment":
|
| 171 |
deployment_page()
|
| 172 |
+
elif st.session_state.current_page == "monitoring":
|
| 173 |
+
monitoring_page()
|
| 174 |
|
| 175 |
if __name__ == "__main__":
|
| 176 |
main()
|