Spaces:
Running
Running
| 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() | |