Machine_learning / pages /3_Life cycle of ML.py
Harika22's picture
Update pages/3_Life cycle of ML.py
c1d44d5 verified
import streamlit as st
from PIL import Image
def main():
st.set_page_config(page_title="ML Lifecycle", layout="wide")
st.title("πŸš€ Machine Learning Lifecycle")
steps = [
{"title": "1. Problem Definition", "description": "Objective of the project.", "icon": "πŸ”"},
{"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": "πŸ“Š"},
{"title": "3. Simple EDA", "description": "Describing the quality of the data.", "icon": "🧹"},
{"title": "4. Data Pre-processing", "description": "It is a technique by which we can convert raw data into pre-procesed data --->1.Clean the data 2.Transform the data.", "icon": "πŸ“ˆ"},
{"title": "5. EDA", "description": "Transforming insights into a clean dataset and providing proper visualizations.", "icon": "πŸ› οΈ"},
{"title": "6. Feature Engineering", "description": "Creating and analyzing features and labels.", "icon": "πŸ€–"},
{"title": "7. Model Training", "description": "Training the machine about relationships between features and labels.", "icon": "🎯"},
{"title": "8. Model Testing", "description": "Testing how efficiently the machine learned.", "icon": "πŸ“‹"},
{"title": "9. Deployment", "description": "Deploying the machine to the client and ensuring maintenance for accurate results", "icon": "🌐"},
{"title": "10. Monitoring & Maintenance", "description": "Monitor the model and update as needed.", "icon": "πŸ“‘"}
]
st.sidebar.title("Navigate the Lifecycle")
selected_step = st.sidebar.radio("Steps", [step['title'] for step in steps])
for step in steps:
if step['title'] == selected_step:
st.subheader(f"{step['icon']} {step['title']}")
st.markdown(step['description'])
st.markdown("Steps")
cols = st.columns(10)
for idx, step in enumerate(steps):
with cols[idx]:
st.markdown(f"{step['icon']} **{step['title']}**")
if __name__ == "__main__":
main()