Update pages/3_Life Cycle Of ML Project.py
Browse files
pages/3_Life Cycle Of ML Project.py
CHANGED
|
@@ -2,7 +2,9 @@ import streamlit as st
|
|
| 2 |
|
| 3 |
# Function to display content based on button click
|
| 4 |
def display_content(stage):
|
| 5 |
-
if stage == "
|
|
|
|
|
|
|
| 6 |
st.markdown("### Problem Definition\nIdentify the problem you want to solve and set clear objectives and success criteria.")
|
| 7 |
elif stage == "Data Collection":
|
| 8 |
st.markdown("### Data Collection\nGather relevant data from various sources and store it in a structured format.")
|
|
@@ -24,32 +26,22 @@ def display_content(stage):
|
|
| 24 |
st.markdown("### Documentation and Reporting\nDocument the entire project and share the results and insights with stakeholders.")
|
| 25 |
|
| 26 |
# Title and Introduction
|
| 27 |
-
st.title("
|
| 28 |
st.markdown("Click on a stage to learn more about it.")
|
| 29 |
|
| 30 |
-
#
|
| 31 |
-
st.button("
|
| 32 |
-
|
| 33 |
-
st.button("Data Preparation", on_click=display_content, args=("Data Preparation",))
|
| 34 |
-
st.button("Exploratory Data Analysis (EDA)", on_click=display_content, args=("Exploratory Data Analysis (EDA)", ))
|
| 35 |
-
st.button("Model Selection", on_click=display_content, args=("Model Selection", ))
|
| 36 |
-
st.button("Model Training", on_click=display_content, args=("Model Training",))
|
| 37 |
-
st.button("Model Evaluation", on_click=display_content, args=("Model Evaluation", ))
|
| 38 |
-
st.button("Model Deployment", on_click=display_content, args=("Model Deployment",))
|
| 39 |
-
st.button("Model Maintenance", on_click=display_content, args=("Model Maintenance", ))
|
| 40 |
-
st.button("Documentation and Reporting", on_click=display_content, args=("Documentation and Reporting", ))
|
| 41 |
|
| 42 |
-
#
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
st.markdown(
|
| 48 |
-
f"""
|
| 49 |
-
<h3 style='text-align: left; color: green;'>Author Details</h3>
|
| 50 |
-
<p><strong>Author:</strong> {author_name}</p>
|
| 51 |
-
<p><strong>Email:</strong> {author_email}</p>
|
| 52 |
-
<p><strong>Website:</strong> <a href='{author_website}' target='_blank'>Visit Here</a></p>
|
| 53 |
-
""",
|
| 54 |
-
unsafe_allow_html=True
|
| 55 |
-
)
|
|
|
|
| 2 |
|
| 3 |
# Function to display content based on button click
|
| 4 |
def display_content(stage):
|
| 5 |
+
if stage == "Overview":
|
| 6 |
+
st.markdown("### Overview\nThis application guides you through the lifecycle of a machine learning project.")
|
| 7 |
+
elif stage == "Problem Definition":
|
| 8 |
st.markdown("### Problem Definition\nIdentify the problem you want to solve and set clear objectives and success criteria.")
|
| 9 |
elif stage == "Data Collection":
|
| 10 |
st.markdown("### Data Collection\nGather relevant data from various sources and store it in a structured format.")
|
|
|
|
| 26 |
st.markdown("### Documentation and Reporting\nDocument the entire project and share the results and insights with stakeholders.")
|
| 27 |
|
| 28 |
# Title and Introduction
|
| 29 |
+
st.title("Lifecycle of a Machine Learning Project")
|
| 30 |
st.markdown("Click on a stage to learn more about it.")
|
| 31 |
|
| 32 |
+
# Overview button
|
| 33 |
+
if st.button("Overview"):
|
| 34 |
+
display_content("Overview")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
# Buttons for each stage with colors and emojis
|
| 37 |
+
st.button("π Problem Definition", on_click=display_content, args=("Problem Definition",), key="problem_definition", help="Identify the problem you want to solve and set clear objectives and success criteria.", style="background-color: #FF6347; color: white;")
|
| 38 |
+
st.button("π Data Collection", on_click=display_content, args=("Data Collection",), key="data_collection", help="Gather relevant data from various sources and store it in a structured format.", style="background-color: #4682B4; color: white;")
|
| 39 |
+
st.button("π οΈ Data Preparation", on_click=display_content, args=("Data Preparation",), key="data_preparation", help="Clean, transform, and engineer features from the data to prepare it for modeling.", style="background-color: #32CD32; color: white;")
|
| 40 |
+
st.button("π Exploratory Data Analysis (EDA)", on_click=display_content, args=("Exploratory Data Analysis (EDA)",), key="eda", help="Visualize and analyze the data to understand its distributions and relationships.", style="background-color: #FFD700; color: black;")
|
| 41 |
+
st.button("π€ Model Selection", on_click=display_content, args=("Model Selection",), key="model_selection", help="Choose appropriate machine learning algorithms and develop a baseline model.", style="background-color: #FF4500; color: white;")
|
| 42 |
+
st.button("ποΈ Model Training", on_click=display_content, args=("Model Training",), key="model_training", help="Train the model using the training data and optimize its parameters.", style="background-color: #1E90FF; color: white;")
|
| 43 |
+
st.button("π Model Evaluation", on_click=display_content, args=("Model Evaluation",), key="model_evaluation", help="Assess the model's performance using various metrics and cross-validation techniques.", style="background-color: #8A2BE2; color: white;")
|
| 44 |
+
st.button("π Model Deployment", on_click=display_content, args=("Model Deployment",), key="model_deployment", help="Integrate the trained model into a production environment and monitor its performance.", style="background-color: #FF1493; color: white;")
|
| 45 |
+
st.button("π§ Model Maintenance", on_click=display_content, args=("Model Maintenance",), key="model_maintenance", help="Periodically retrain the model with new data and update features as needed.", style="background-color: #00CED1; color: white;")
|
| 46 |
+
st.button("π Documentation and Reporting", on_click=display_content, args=("Documentation and Reporting",), key="documentation_reporting", help="Document the entire project and share the results and insights with stakeholders.", style="background-color: #FF69B4; color: white;")
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|