Spaces:
Sleeping
Sleeping
Update pages/3_Life cycle of ML.py
Browse files
pages/3_Life cycle of ML.py
CHANGED
|
@@ -2,14 +2,10 @@ import streamlit as st
|
|
| 2 |
from PIL import Image
|
| 3 |
|
| 4 |
def main():
|
| 5 |
-
# Set up the app title and layout
|
| 6 |
st.set_page_config(page_title="ML Lifecycle", layout="wide")
|
| 7 |
|
| 8 |
-
|
| 9 |
-
st.title("π Machine Learning Lifecycle: 10 Steps")
|
| 10 |
-
st.markdown("### A visually engaging journey through the ML lifecycle")
|
| 11 |
|
| 12 |
-
# Step descriptions and icons
|
| 13 |
steps = [
|
| 14 |
{"title": "1. Problem Definition", "description": "Objective of the project.", "icon": "π"},
|
| 15 |
{"title": "2. Data Collection", "description": "Data is collected from various sources like APIs, databases, or web scraping atlast we've to go with manual collection.", "icon": "π"},
|
|
@@ -23,18 +19,15 @@ def main():
|
|
| 23 |
{"title": "10. Monitoring & Maintenance", "description": "Monitor the model and update as needed.", "icon": "π‘"}
|
| 24 |
]
|
| 25 |
|
| 26 |
-
# Sidebar with navigation
|
| 27 |
st.sidebar.title("Navigate the Lifecycle")
|
| 28 |
selected_step = st.sidebar.radio("Steps", [step['title'] for step in steps])
|
| 29 |
|
| 30 |
-
# Display the selected step's details
|
| 31 |
for step in steps:
|
| 32 |
if step['title'] == selected_step:
|
| 33 |
st.subheader(f"{step['icon']} {step['title']}")
|
| 34 |
st.markdown(step['description'])
|
| 35 |
|
| 36 |
-
|
| 37 |
-
st.markdown("### Full Timeline")
|
| 38 |
cols = st.columns(10)
|
| 39 |
|
| 40 |
for idx, step in enumerate(steps):
|
|
|
|
| 2 |
from PIL import Image
|
| 3 |
|
| 4 |
def main():
|
|
|
|
| 5 |
st.set_page_config(page_title="ML Lifecycle", layout="wide")
|
| 6 |
|
| 7 |
+
st.title("π Machine Learning Lifecycle")
|
|
|
|
|
|
|
| 8 |
|
|
|
|
| 9 |
steps = [
|
| 10 |
{"title": "1. Problem Definition", "description": "Objective of the project.", "icon": "π"},
|
| 11 |
{"title": "2. Data Collection", "description": "Data is collected from various sources like APIs, databases, or web scraping atlast we've to go with manual collection.", "icon": "π"},
|
|
|
|
| 19 |
{"title": "10. Monitoring & Maintenance", "description": "Monitor the model and update as needed.", "icon": "π‘"}
|
| 20 |
]
|
| 21 |
|
|
|
|
| 22 |
st.sidebar.title("Navigate the Lifecycle")
|
| 23 |
selected_step = st.sidebar.radio("Steps", [step['title'] for step in steps])
|
| 24 |
|
|
|
|
| 25 |
for step in steps:
|
| 26 |
if step['title'] == selected_step:
|
| 27 |
st.subheader(f"{step['icon']} {step['title']}")
|
| 28 |
st.markdown(step['description'])
|
| 29 |
|
| 30 |
+
st.markdown("###Steps")
|
|
|
|
| 31 |
cols = st.columns(10)
|
| 32 |
|
| 33 |
for idx, step in enumerate(steps):
|