Sathwikchowdary commited on
Commit
d4eb272
·
verified ·
1 Parent(s): 59387da

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +52 -66
pages/Life_cycle_of_ML.py CHANGED
@@ -5,118 +5,104 @@ 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
  )
 
5
  st.subheader(stage_name)
6
  st.write(description)
7
 
8
+ # Title
9
+ st.title("Enhanced Machine Learning Life Cycle")
10
 
11
+ # Markdown Diagram with Shapes and Colors
12
  st.markdown(
13
  """
14
+ <style>
15
+ .shape-box {
16
+ background-color: #FFDDC1;
17
+ padding: 10px;
18
+ border-radius: 5px;
19
+ text-align: center;
20
+ margin-bottom: 10px;
21
+ }
22
+ .shape-circle {
23
+ background-color: #C1E1FF;
24
+ padding: 10px;
25
+ border-radius: 50%;
26
+ text-align: center;
27
+ margin-bottom: 10px;
28
+ }
29
+ .shape-diamond {
30
+ background-color: #C1FFC1;
31
+ padding: 10px;
32
+ clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
33
+ text-align: center;
34
+ margin-bottom: 10px;
35
+ }
36
+ </style>
37
+
38
+ <div class="shape-box">Problem Statement</div>
39
+ <div class="shape-circle">Data Collection</div>
40
+ <div class="shape-box">Simple EDA</div>
41
+ <div class="shape-diamond">Data Preprocessing</div>
42
+ <div class="shape-box">EDA</div>
43
+ <div class="shape-circle">Feature Engineering</div>
44
+ <div class="shape-box">Training</div>
45
+ <div class="shape-diamond">Testing</div>
46
+ <div class="shape-box">Deploying</div>
47
+ <div class="shape-circle">Monitoring</div>
48
+ """,
49
+ unsafe_allow_html=True,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  )
51
 
52
  # Buttons for each stage
53
+ st.markdown("### Select a Lifecycle Stage to Learn More:")
54
  col1, col2 = st.columns(2)
55
 
56
  with col1:
57
  if st.button("Problem Statement"):
58
  display_lifecycle_stage(
59
  "Problem Statement",
60
+ "Defining the problem and setting objectives for the machine learning project."
61
  )
62
  if st.button("Simple EDA"):
63
  display_lifecycle_stage(
64
  "Simple EDA",
65
+ "Performing initial exploratory data analysis to understand data distribution and trends."
66
  )
67
  if st.button("EDA"):
68
  display_lifecycle_stage(
69
  "EDA",
70
+ "Detailed exploratory data analysis for deeper insights into data patterns."
71
  )
72
  if st.button("Training"):
73
  display_lifecycle_stage(
74
  "Training",
75
+ "Fitting the model using the training dataset to learn patterns and relationships."
76
  )
77
+ if st.button("Deploying"):
78
  display_lifecycle_stage(
79
+ "Deploying",
80
+ "Deploying the trained model to production for real-world use."
81
  )
82
 
83
  with col2:
84
  if st.button("Data Collection"):
85
  display_lifecycle_stage(
86
  "Data Collection",
87
+ "Gathering the data required for the machine learning project."
88
  )
89
  if st.button("Data Preprocessing"):
90
  display_lifecycle_stage(
91
  "Data Preprocessing",
92
+ "Cleaning and transforming the data to prepare it for analysis."
93
  )
94
  if st.button("Feature Engineering"):
95
  display_lifecycle_stage(
96
  "Feature Engineering",
97
+ "Creating new features or modifying existing ones to improve model performance."
98
  )
99
  if st.button("Testing"):
100
  display_lifecycle_stage(
101
  "Testing",
102
+ "Evaluating the model's performance using a separate testing dataset."
103
  )
104
  if st.button("Monitoring"):
105
  display_lifecycle_stage(
106
  "Monitoring",
107
+ "Monitoring the deployed model's performance and maintaining its accuracy."
108
  )