Zero_To_Hero_In_MachineLearning / pages /3_Life Cycle Of ML Project.py
sree4411's picture
Update pages/3_Life Cycle Of ML Project.py
b2bde06 verified
raw
history blame
2.66 kB
import streamlit as st
# Initialize session state for page navigation if not already initialized
if 'page' not in st.session_state:
st.session_state.page = "home" # Default page is "home"
# Home Page
if st.session_state.page == "home":
st.title(":red[Lifecycle of a Machine Learning Project]")
st.markdown("Click on a stage to learn more about it.")
# Button for Data Collection (Redirection happens here)
if st.button(":blue[πŸ“Š Data Collection]"):
st.session_state.page = "data_collection" # Redirect to 'data_collection' page
# Buttons for other stages (No redirection for these)
if st.button(":blue[🌟 Problem Statement]"):
st.markdown("### Problem Statement\nIdentify the problem you want to solve and set clear objectives and success criteria.")
if st.button(":blue[πŸ› οΈ Simple EDA]"):
st.markdown("### Simple EDA\nPerform exploratory data analysis to understand data distributions and relationships.")
if st.button(":blue[Data Pre-Processing]"):
st.markdown("### Data Pre-Processing\nHere we convert raw data into cleaned data.")
if st.button(":blue[πŸ“ˆ Exploratory Data Analysis (EDA)]"):
st.markdown("### Exploratory Data Analysis (EDA)\nVisualize and analyze the data to understand its distributions and relationships.")
if st.button(":blue[πŸ‹οΈ Feature Engineering]"):
st.markdown("### Feature Engineering\nHere we can create our own new features.")
if st.button(":blue[Model Training]"):
st.markdown("### Model Training\nTrain the model using the training data and optimize its parameters.")
if st.button(":blue[πŸ”§ Model Testing]"):
st.markdown("### Model Testing\nAssess the model's performance using various metrics and cross-validation techniques.")
if st.button(":blue[πŸš€ Model Deployment]"):
st.markdown("### Model Deployment\nIntegrate the trained model into a production environment and monitor its performance.")
if st.button(":blue[πŸ“ Monitoring]"):
st.markdown("### Monitoring\nPeriodically retrain the model with new data and update features as needed.")
# Data Collection Page (Triggered when "Data Collection" is clicked)
elif st.session_state.page == "data_collection":
st.title("Data Collection")
st.markdown("### Data Collection\nThis page discusses the process of Data Collection.")
st.markdown("Types of Data: Structured, Unstructured, Semi-Structured")
# Add more content for data collection here
# Button to go back to home page
if st.button("Back to Home"):
st.session_state.page = "home" # Go back to the home page