Spaces:
Sleeping
Sleeping
Update pages/3_Life cycle of ML.py
Browse files- pages/3_Life cycle of ML.py +10 -20
pages/3_Life cycle of ML.py
CHANGED
|
@@ -3,15 +3,15 @@ import streamlit as st
|
|
| 3 |
# Function for displaying lifecycle steps with details
|
| 4 |
def display_lifecycle_step(step_name):
|
| 5 |
steps = {
|
| 6 |
-
"Problem Statement": "
|
| 7 |
-
"Data Collection": "Data is collected from various sources like APIs, databases, or web scraping
|
| 8 |
-
"Simple EDA": "
|
| 9 |
-
"Data Pre-Processing": "
|
| 10 |
-
"EDA": "
|
| 11 |
-
"Feature Engineering": "
|
| 12 |
-
"Model Training": "
|
| 13 |
-
"Testing": "
|
| 14 |
-
"Deployment and Maintenance": "
|
| 15 |
}
|
| 16 |
st.write(f"### {step_name}")
|
| 17 |
st.write(steps[step_name])
|
|
@@ -26,20 +26,16 @@ steps_list = [
|
|
| 26 |
"Model Training", "Testing", "Deployment and Maintenance"
|
| 27 |
]
|
| 28 |
|
| 29 |
-
# Displaying the lifecycle steps as buttons
|
| 30 |
selected_step = st.sidebar.radio(
|
| 31 |
"Choose a step in the ML lifecycle:",
|
| 32 |
steps_list,
|
| 33 |
-
index=0
|
| 34 |
)
|
| 35 |
|
| 36 |
-
# Main content area displaying the corresponding step details
|
| 37 |
st.title("Machine Learning Lifecycle")
|
| 38 |
|
| 39 |
-
# Show corresponding step details when a button is selected
|
| 40 |
display_lifecycle_step(selected_step)
|
| 41 |
|
| 42 |
-
# Add custom styling to make it look like a circular structure
|
| 43 |
st.markdown("""
|
| 44 |
<style>
|
| 45 |
.stApp {
|
|
@@ -66,7 +62,6 @@ st.markdown("""
|
|
| 66 |
|
| 67 |
import webbrowser
|
| 68 |
|
| 69 |
-
# Function to display detailed content for "Data Collection" page
|
| 70 |
def data_collection_page():
|
| 71 |
st.write("### What is Data?")
|
| 72 |
st.write("""
|
|
@@ -81,13 +76,11 @@ def data_collection_page():
|
|
| 81 |
3. **Semi-Structured Data**: Data that has some organizational properties but isn't fully structured (e.g., JSON, XML).
|
| 82 |
""")
|
| 83 |
|
| 84 |
-
# Button to select Structured Data
|
| 85 |
selected_data_type = st.radio("Choose Data Type", ["Structured Data", "Unstructured Data", "Semi-Structured Data"])
|
| 86 |
|
| 87 |
if selected_data_type == "Structured Data":
|
| 88 |
display_structured_data_info()
|
| 89 |
|
| 90 |
-
# Function to display structured data information and formats
|
| 91 |
def display_structured_data_info():
|
| 92 |
st.write("### Structured Data")
|
| 93 |
st.write("Structured data is data that is highly organized and stored in a fixed format, like tables, rows, and columns.")
|
|
@@ -181,15 +174,12 @@ def open_code_example(data_format):
|
|
| 181 |
if link:
|
| 182 |
webbrowser.open_new_tab(link)
|
| 183 |
|
| 184 |
-
# Main Streamlit app
|
| 185 |
def main():
|
| 186 |
st.title("Machine Learning Life Cycle")
|
| 187 |
st.sidebar.title("ML Life Cycle Navigation")
|
| 188 |
|
| 189 |
-
# Button to go to "Data Collection" page
|
| 190 |
if st.sidebar.button("Data Collection"):
|
| 191 |
data_collection_page()
|
| 192 |
|
| 193 |
-
# Run the main function to start the app
|
| 194 |
if __name__ == "__main__":
|
| 195 |
main()
|
|
|
|
| 3 |
# Function for displaying lifecycle steps with details
|
| 4 |
def display_lifecycle_step(step_name):
|
| 5 |
steps = {
|
| 6 |
+
"Problem Statement": "Objective of the project.",
|
| 7 |
+
"Data Collection": "Data is collected from various sources like APIs, databases, or web scraping atlast we've to go with manual collection.",
|
| 8 |
+
"Simple EDA": "Describing the quality of the data.",
|
| 9 |
+
"Data Pre-Processing": "It is a technique by which we can convert raw data into pre-procesed data --->1.Clean the data 2.Transform the data.",
|
| 10 |
+
"EDA": "Transforming insights into a clean dataset and providing proper visualizations.",
|
| 11 |
+
"Feature Engineering": "Creating and analyzing features and labels.",
|
| 12 |
+
"Model Training": "Training the machine about relationships between features and labels.",
|
| 13 |
+
"Testing": "Testing how efficiently the machine learned.",
|
| 14 |
+
"Deployment and Maintenance": "Deploying the machine to the client and ensuring maintenance for accurate results."
|
| 15 |
}
|
| 16 |
st.write(f"### {step_name}")
|
| 17 |
st.write(steps[step_name])
|
|
|
|
| 26 |
"Model Training", "Testing", "Deployment and Maintenance"
|
| 27 |
]
|
| 28 |
|
|
|
|
| 29 |
selected_step = st.sidebar.radio(
|
| 30 |
"Choose a step in the ML lifecycle:",
|
| 31 |
steps_list,
|
| 32 |
+
index=0
|
| 33 |
)
|
| 34 |
|
|
|
|
| 35 |
st.title("Machine Learning Lifecycle")
|
| 36 |
|
|
|
|
| 37 |
display_lifecycle_step(selected_step)
|
| 38 |
|
|
|
|
| 39 |
st.markdown("""
|
| 40 |
<style>
|
| 41 |
.stApp {
|
|
|
|
| 62 |
|
| 63 |
import webbrowser
|
| 64 |
|
|
|
|
| 65 |
def data_collection_page():
|
| 66 |
st.write("### What is Data?")
|
| 67 |
st.write("""
|
|
|
|
| 76 |
3. **Semi-Structured Data**: Data that has some organizational properties but isn't fully structured (e.g., JSON, XML).
|
| 77 |
""")
|
| 78 |
|
|
|
|
| 79 |
selected_data_type = st.radio("Choose Data Type", ["Structured Data", "Unstructured Data", "Semi-Structured Data"])
|
| 80 |
|
| 81 |
if selected_data_type == "Structured Data":
|
| 82 |
display_structured_data_info()
|
| 83 |
|
|
|
|
| 84 |
def display_structured_data_info():
|
| 85 |
st.write("### Structured Data")
|
| 86 |
st.write("Structured data is data that is highly organized and stored in a fixed format, like tables, rows, and columns.")
|
|
|
|
| 174 |
if link:
|
| 175 |
webbrowser.open_new_tab(link)
|
| 176 |
|
|
|
|
| 177 |
def main():
|
| 178 |
st.title("Machine Learning Life Cycle")
|
| 179 |
st.sidebar.title("ML Life Cycle Navigation")
|
| 180 |
|
|
|
|
| 181 |
if st.sidebar.button("Data Collection"):
|
| 182 |
data_collection_page()
|
| 183 |
|
|
|
|
| 184 |
if __name__ == "__main__":
|
| 185 |
main()
|