Update pages/3_Life Cycle Of ML Project.py
Browse files
pages/3_Life Cycle Of ML Project.py
CHANGED
|
@@ -1,58 +1,46 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
st.markdown("### Problem Statement\nIdentify the problem you want to solve and set clear objectives and success criteria.")
|
| 9 |
-
|
| 10 |
-
st.markdown("###
|
| 11 |
-
|
| 12 |
-
st.markdown("
|
| 13 |
-
|
| 14 |
-
st.markdown("### Simple EDA\nPerform exploratory data analysis to understand data distributions and relationships..")
|
| 15 |
-
elif stage == "Data Pre-Processing":
|
| 16 |
-
st.markdown("### Data Pre-Processing\nhere we convert raw data into cleaned data, it involves two steps Cleaning and Transforming.")
|
| 17 |
-
elif stage == "Exploratory Data Analysis (EDA)":
|
| 18 |
st.markdown("### Exploratory Data Analysis (EDA)\nVisualize and analyze the data to understand its distributions and relationships.")
|
| 19 |
-
|
| 20 |
st.markdown("### Feature Engineering\nHere we can create our own new features.")
|
| 21 |
-
|
| 22 |
st.markdown("### Model Training\nTrain the model using the training data and optimize its parameters.")
|
| 23 |
-
|
| 24 |
st.markdown("### Model Testing\nAssess the model's performance using various metrics and cross-validation techniques.")
|
| 25 |
-
|
| 26 |
st.markdown("### Model Deployment\nIntegrate the trained model into a production environment and monitor its performance.")
|
| 27 |
-
|
| 28 |
st.markdown("### Monitoring\nPeriodically retrain the model with new data and update features as needed.")
|
| 29 |
|
| 30 |
-
#
|
| 31 |
-
st.
|
| 32 |
-
st.
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
-
#
|
| 39 |
-
if st.button("
|
| 40 |
-
|
| 41 |
-
if st.button(":blue[๐ Data_Collection]"):
|
| 42 |
-
display_content("Data_Collection")
|
| 43 |
-
if st.button(":blue[๐ ๏ธ Simple EDA]")
|
| 44 |
-
display_content("Simple EDA")
|
| 45 |
-
if st.button(":blue[ Data Pre-Processing]"):
|
| 46 |
-
display_content("Data Pre-Processing")
|
| 47 |
-
if st.button(":blue[๐Exploratory Data Analysis (EDA)]"):
|
| 48 |
-
display_content("Exploratory Data Analysis (EDA)")
|
| 49 |
-
if st.button(":blue[๐๏ธ Feature Engineering]"):
|
| 50 |
-
display_content("Feature Engineering")
|
| 51 |
-
if st.button(":blue[Model Training]"):
|
| 52 |
-
display_content("Model Training")
|
| 53 |
-
if st.button(":blue[๐งModel Testing]"):
|
| 54 |
-
display_content("Model Testing")
|
| 55 |
-
if st.button(":blue[๐Model Deployment]"):
|
| 56 |
-
display_content("Model Deployment")
|
| 57 |
-
if st.button(":blue[๐ Monitoring]"):
|
| 58 |
-
display_content("Monitoring")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# Initialize session state for page navigation if not already initialized
|
| 4 |
+
if 'page' not in st.session_state:
|
| 5 |
+
st.session_state.page = "home" # Default page is "home"
|
| 6 |
+
|
| 7 |
+
# Home Page
|
| 8 |
+
if st.session_state.page == "home":
|
| 9 |
+
st.title(":red[Lifecycle of a Machine Learning Project]")
|
| 10 |
+
st.markdown("Click on a stage to learn more about it.")
|
| 11 |
+
|
| 12 |
+
# Button for Data Collection (Redirection happens here)
|
| 13 |
+
if st.button(":blue[๐ Data Collection]"):
|
| 14 |
+
st.session_state.page = "data_collection" # Redirect to 'data_collection' page
|
| 15 |
+
|
| 16 |
+
# Buttons for other stages (No redirection for these)
|
| 17 |
+
if st.button(":blue[๐ Problem Statement]"):
|
| 18 |
st.markdown("### Problem Statement\nIdentify the problem you want to solve and set clear objectives and success criteria.")
|
| 19 |
+
if st.button(":blue[๐ ๏ธ Simple EDA]"):
|
| 20 |
+
st.markdown("### Simple EDA\nPerform exploratory data analysis to understand data distributions and relationships.")
|
| 21 |
+
if st.button(":blue[Data Pre-Processing]"):
|
| 22 |
+
st.markdown("### Data Pre-Processing\nHere we convert raw data into cleaned data.")
|
| 23 |
+
if st.button(":blue[๐ Exploratory Data Analysis (EDA)]"):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
st.markdown("### Exploratory Data Analysis (EDA)\nVisualize and analyze the data to understand its distributions and relationships.")
|
| 25 |
+
if st.button(":blue[๐๏ธ Feature Engineering]"):
|
| 26 |
st.markdown("### Feature Engineering\nHere we can create our own new features.")
|
| 27 |
+
if st.button(":blue[Model Training]"):
|
| 28 |
st.markdown("### Model Training\nTrain the model using the training data and optimize its parameters.")
|
| 29 |
+
if st.button(":blue[๐ง Model Testing]"):
|
| 30 |
st.markdown("### Model Testing\nAssess the model's performance using various metrics and cross-validation techniques.")
|
| 31 |
+
if st.button(":blue[๐ Model Deployment]"):
|
| 32 |
st.markdown("### Model Deployment\nIntegrate the trained model into a production environment and monitor its performance.")
|
| 33 |
+
if st.button(":blue[๐ Monitoring]"):
|
| 34 |
st.markdown("### Monitoring\nPeriodically retrain the model with new data and update features as needed.")
|
| 35 |
|
| 36 |
+
# Data Collection Page (Triggered when "Data Collection" is clicked)
|
| 37 |
+
elif st.session_state.page == "data_collection":
|
| 38 |
+
st.title("Data Collection")
|
| 39 |
+
st.markdown("### Data Collection\nThis page discusses the process of Data Collection.")
|
| 40 |
+
st.markdown("Types of Data: Structured, Unstructured, Semi-Structured")
|
| 41 |
+
|
| 42 |
+
# Add more content for data collection here
|
| 43 |
|
| 44 |
+
# Button to go back to home page
|
| 45 |
+
if st.button("Back to Home"):
|
| 46 |
+
st.session_state.page = "home" # Go back to the home page
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|