Spaces:
Sleeping
Sleeping
Update pages/Life_cycle_of_ML.py
Browse files- pages/Life_cycle_of_ML.py +120 -121
pages/Life_cycle_of_ML.py
CHANGED
@@ -1,123 +1,122 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
""
|
121 |
-
|
122 |
-
|
123 |
-
st.markdown(html_content, unsafe_allow_html=True)
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
# Function to display lifecycle descriptions
|
4 |
+
def display_lifecycle_stage(stage_name, description):
|
5 |
+
st.subheader(stage_name)
|
6 |
+
st.write(description)
|
7 |
+
|
8 |
+
# Page Title
|
9 |
+
st.title("Machine Learning Life Cycle")
|
10 |
+
|
11 |
+
# Markdown Diagram
|
12 |
+
st.markdown(
|
13 |
+
"""
|
14 |
+
```
|
15 |
+
+-----------------------+
|
16 |
+
| Problem Statement |
|
17 |
+
+-----------------------+
|
18 |
+
|
|
19 |
+
v
|
20 |
+
+-----------------------+
|
21 |
+
| Data Collection |
|
22 |
+
+-----------------------+
|
23 |
+
|
|
24 |
+
v
|
25 |
+
+-----------------------+
|
26 |
+
| Simple EDA |
|
27 |
+
+-----------------------+
|
28 |
+
|
|
29 |
+
v
|
30 |
+
+-----------------------+
|
31 |
+
| Data Preprocessing |
|
32 |
+
+-----------------------+
|
33 |
+
|
|
34 |
+
v
|
35 |
+
+-----------------------+
|
36 |
+
| EDA |
|
37 |
+
+-----------------------+
|
38 |
+
|
|
39 |
+
v
|
40 |
+
+-----------------------+
|
41 |
+
| Feature Engineering |
|
42 |
+
+-----------------------+
|
43 |
+
|
|
44 |
+
v
|
45 |
+
+-----------------------+
|
46 |
+
| Training |
|
47 |
+
+-----------------------+
|
48 |
+
|
|
49 |
+
v
|
50 |
+
+-----------------------+
|
51 |
+
| Testing |
|
52 |
+
+-----------------------+
|
53 |
+
|
|
54 |
+
v
|
55 |
+
+-----------------------+
|
56 |
+
| Deployment |
|
57 |
+
+-----------------------+
|
58 |
+
|
|
59 |
+
v
|
60 |
+
+-----------------------+
|
61 |
+
| Monitoring |
|
62 |
+
+-----------------------+
|
63 |
+
```
|
64 |
+
"""
|
65 |
+
)
|
66 |
+
|
67 |
+
# Buttons for each stage
|
68 |
+
col1, col2 = st.columns(2)
|
69 |
+
|
70 |
+
with col1:
|
71 |
+
if st.button("Problem Statement"):
|
72 |
+
display_lifecycle_stage(
|
73 |
+
"Problem Statement",
|
74 |
+
"Defining the problem and setting objectives for the machine learning project.",
|
75 |
+
)
|
76 |
+
if st.button("Simple EDA"):
|
77 |
+
display_lifecycle_stage(
|
78 |
+
"Simple EDA",
|
79 |
+
"Performing initial exploratory data analysis to understand data distribution and trends.",
|
80 |
+
)
|
81 |
+
if st.button("EDA"):
|
82 |
+
display_lifecycle_stage(
|
83 |
+
"EDA",
|
84 |
+
"Detailed exploratory data analysis for deeper insights into data patterns.",
|
85 |
+
)
|
86 |
+
if st.button("Training"):
|
87 |
+
display_lifecycle_stage(
|
88 |
+
"Training",
|
89 |
+
"Fitting the model using the training dataset to learn patterns and relationships.",
|
90 |
+
)
|
91 |
+
if st.button("Deployment"):
|
92 |
+
display_lifecycle_stage(
|
93 |
+
"Deployment",
|
94 |
+
"Deploying the trained model to production for real-world use.",
|
95 |
+
)
|
96 |
+
|
97 |
+
with col2:
|
98 |
+
if st.button("Data Collection"):
|
99 |
+
display_lifecycle_stage(
|
100 |
+
"Data Collection",
|
101 |
+
"Gathering the data required for the machine learning project.",
|
102 |
+
)
|
103 |
+
if st.button("Data Preprocessing"):
|
104 |
+
display_lifecycle_stage(
|
105 |
+
"Data Preprocessing",
|
106 |
+
"Cleaning and transforming the data to prepare it for analysis.",
|
107 |
+
)
|
108 |
+
if st.button("Feature Engineering"):
|
109 |
+
display_lifecycle_stage(
|
110 |
+
"Feature Engineering",
|
111 |
+
"Creating new features or modifying existing ones to improve model performance.",
|
112 |
+
)
|
113 |
+
if st.button("Testing"):
|
114 |
+
display_lifecycle_stage(
|
115 |
+
"Testing",
|
116 |
+
"Evaluating the model's performance using a separate testing dataset.",
|
117 |
+
)
|
118 |
+
if st.button("Monitoring"):
|
119 |
+
display_lifecycle_stage(
|
120 |
+
"Monitoring",
|
121 |
+
"Monitoring the deployed model's performance and maintaining its accuracy.",
|
122 |
+
)
|
|