LakshmiHarika commited on
Commit
08782ca
·
verified ·
1 Parent(s): c91c816

Update pages/3Life Cycle of Machine Learning Project.py

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -1,11 +1,11 @@
1
  import streamlit as st
2
 
3
-
4
  st.set_page_config(
5
  page_title="HomePage",
6
  page_icon="🚀",
7
  layout="wide"
8
  )
 
9
  # Global CSS for consistent styling across all pages
10
  st.markdown("""
11
  <style>
@@ -39,13 +39,10 @@ st.markdown(
39
  unsafe_allow_html=True
40
  )
41
 
 
 
42
 
43
- st.markdown("""
44
- <div style="text-align: center; margin-top: 20px;">
45
- <h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
46
-
47
-
48
-
49
  st.markdown(
50
  """
51
  <style>
@@ -57,7 +54,6 @@ st.markdown(
57
  flex-direction: column;
58
  align-items: center;
59
  }
60
-
61
  /* Styling for each phase (rectangle button) */
62
  .phase {
63
  position: relative;
@@ -78,7 +74,6 @@ st.markdown(
78
  transition: transform 0.3s ease, background-color 0.3s ease;
79
  color: black; /* Always black text */
80
  }
81
-
82
  /* Colors for each phase */
83
  .phase-1 { background-color: #E6F4EA; } /* Light Green */
84
  .phase-2 { background-color: #E0F7FA; } /* Light Blue */
@@ -90,20 +85,17 @@ st.markdown(
90
  .phase-8 { background-color: #CFD8DC; } /* Light Gray-Blue */
91
  .phase-9 { background-color: #B2EBF2; } /* Light Cyan */
92
  .phase-10 { background-color: #FFE082; } /* Light Amber */
93
-
94
  .phase:hover {
95
  transform: scale(1.05);
96
  background-color: #F0F0F0; /* Slightly lighter on hover */
97
  color: black; /* Ensure text remains black */
98
  }
99
-
100
  /* Arrow styling */
101
  .arrow {
102
  font-size: 24px; /* Arrow size */
103
  color: #4F4F4F; /* Dark arrow color */
104
  margin: 10px 0; /* Space for arrow */
105
  }
106
-
107
  /* Styling for descriptions */
108
  .description {
109
  display: none; /* Hidden by default */
@@ -116,7 +108,6 @@ st.markdown(
116
  padding: 10px;
117
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
118
  }
119
-
120
  .phase:hover + .description {
121
  display: block; /* Show description on hover */
122
  }
@@ -131,54 +122,52 @@ st.markdown(
131
  <div class="vertical-flowchart">
132
  <!-- Problem Statement -->
133
  <a href="/problem-statement" class="phase phase-1" target="_self">Problem Statement</a>
134
- <div class="description"> Problem Statement clearly state what the ML model will do, the data it will use, and the result it aims to deliver. Focus on its main goal and how it addresses the specific problem. .</div>
135
  <div class="arrow">⬇️</div>
136
 
137
  <!-- Data Collection -->
138
  <a href="/data-collection" class="phase phase-2" target="_self">Data Collection</a>
139
- <div class="description">GCollect relevant data from multiple sources like APIs, databases, or user-generated content. Ensure the data aligns with the problem statement..</div>
140
  <div class="arrow">⬇️</div>
141
 
142
  <!-- Simple EDA -->
143
  <a href="/simple-eda" class="phase phase-3" target="_self">Simple EDA</a>
144
- <div class="description">Perform an initial exploratory analysis to understand data quality, structure, and how the data looks.div>
145
  <div class="arrow">⬇️</div>
146
 
147
  <!-- Data Preprocessing -->
148
  <a href="/data-preprocessing" class="phase phase-4" target="_self">Data Preprocessing</a>
149
- <div class="description">Clean the dataset by handling missing values, outliers, and inconsistencies. Transform data into a format suitable for analysis and modeling.
150
-
151
- </div>
152
  <div class="arrow">⬇️</div>
153
 
154
  <!-- EDA -->
155
  <a href="/eda" class="phase phase-5" target="_self">EDA</a>
156
- <div class="description">Perform a detailed analysis of the data to uncover trends, relationships, and patterns that will guide the model-building process..</div>
157
  <div class="arrow">⬇️</div>
158
 
159
  <!-- Feature Engineering -->
160
  <a href="/feature-engineering" class="phase phase-6" target="_self">Feature Engineering</a>
161
- <div class="description">Create or select meaningful features, scale variables, and reduce dimensionality to improve the model’s learning process and accuracy.</div>
162
  <div class="arrow">⬇️</div>
163
 
164
  <!-- Model Training -->
165
  <a href="/model-training" class="phase phase-7" target="_self">Model Training</a>
166
- <div class="description">Use the prepared dataset to train machine learning algorithms. Optimize parameters to achieve the best possible model performance.</div>
167
  <div class="arrow">⬇️</div>
168
 
169
  <!-- Model Testing -->
170
  <a href="/model-testing" class="phase phase-8" target="_self">Model Testing</a>
171
- <div class="description">Evaluate the trained model on a validation or test dataset. Assess performance metrics like accuracy, precision, recall, and F1 score.</div>
172
  <div class="arrow">⬇️</div>
173
 
174
  <!-- Deployment -->
175
  <a href="/deployment" class="phase phase-9" target="_self">Deployment</a>
176
- <div class="description">Deploy the trained model into a live production system or application, ensuring it can process real-time or batch inputs..</div>
177
  <div class="arrow">⬇️</div>
178
 
179
  <!-- Monitoring -->
180
  <a href="/monitoring" class="phase phase-10" target="_self">Monitoring</a>
181
- <div class="description">Continuously track the model’s performance in production. Identify and address issues like data drift or model degradation to maintain reliability.</div>
182
  </div>
183
  """,
184
  unsafe_allow_html=True,
 
1
  import streamlit as st
2
 
 
3
  st.set_page_config(
4
  page_title="HomePage",
5
  page_icon="🚀",
6
  layout="wide"
7
  )
8
+
9
  # Global CSS for consistent styling across all pages
10
  st.markdown("""
11
  <style>
 
39
  unsafe_allow_html=True
40
  )
41
 
42
+ # Title of the page
43
+ st.markdown("""<div style="text-align: center; margin-top: 20px;"><h1 style="color: #BB3385;">Life Cycle of End to End ML Project</h1></div>""", unsafe_allow_html=True)
44
 
45
+ # Inject custom CSS for the vertical flowchart
 
 
 
 
 
46
  st.markdown(
47
  """
48
  <style>
 
54
  flex-direction: column;
55
  align-items: center;
56
  }
 
57
  /* Styling for each phase (rectangle button) */
58
  .phase {
59
  position: relative;
 
74
  transition: transform 0.3s ease, background-color 0.3s ease;
75
  color: black; /* Always black text */
76
  }
 
77
  /* Colors for each phase */
78
  .phase-1 { background-color: #E6F4EA; } /* Light Green */
79
  .phase-2 { background-color: #E0F7FA; } /* Light Blue */
 
85
  .phase-8 { background-color: #CFD8DC; } /* Light Gray-Blue */
86
  .phase-9 { background-color: #B2EBF2; } /* Light Cyan */
87
  .phase-10 { background-color: #FFE082; } /* Light Amber */
 
88
  .phase:hover {
89
  transform: scale(1.05);
90
  background-color: #F0F0F0; /* Slightly lighter on hover */
91
  color: black; /* Ensure text remains black */
92
  }
 
93
  /* Arrow styling */
94
  .arrow {
95
  font-size: 24px; /* Arrow size */
96
  color: #4F4F4F; /* Dark arrow color */
97
  margin: 10px 0; /* Space for arrow */
98
  }
 
99
  /* Styling for descriptions */
100
  .description {
101
  display: none; /* Hidden by default */
 
108
  padding: 10px;
109
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
110
  }
 
111
  .phase:hover + .description {
112
  display: block; /* Show description on hover */
113
  }
 
122
  <div class="vertical-flowchart">
123
  <!-- Problem Statement -->
124
  <a href="/problem-statement" class="phase phase-1" target="_self">Problem Statement</a>
125
+ <div class="description">Clearly define the issue, the data used, and the expected outcome.</div>
126
  <div class="arrow">⬇️</div>
127
 
128
  <!-- Data Collection -->
129
  <a href="/data-collection" class="phase phase-2" target="_self">Data Collection</a>
130
+ <div class="description">Collect relevant data from multiple sources, ensuring it aligns with the problem statement.</div>
131
  <div class="arrow">⬇️</div>
132
 
133
  <!-- Simple EDA -->
134
  <a href="/simple-eda" class="phase phase-3" target="_self">Simple EDA</a>
135
+ <div class="description">Perform initial exploratory analysis to assess data quality, structure, and appearance.</div>
136
  <div class="arrow">⬇️</div>
137
 
138
  <!-- Data Preprocessing -->
139
  <a href="/data-preprocessing" class="phase phase-4" target="_self">Data Preprocessing</a>
140
+ <div class="description">Clean the dataset by handling missing values, outliers, and inconsistencies, transforming it into a suitable format.</div>
 
 
141
  <div class="arrow">⬇️</div>
142
 
143
  <!-- EDA -->
144
  <a href="/eda" class="phase phase-5" target="_self">EDA</a>
145
+ <div class="description">Perform detailed analysis to uncover trends, patterns, and relationships that will guide model building.</div>
146
  <div class="arrow">⬇️</div>
147
 
148
  <!-- Feature Engineering -->
149
  <a href="/feature-engineering" class="phase phase-6" target="_self">Feature Engineering</a>
150
+ <div class="description">Create or select meaningful features, scale variables, and reduce dimensionality to enhance model performance.</div>
151
  <div class="arrow">⬇️</div>
152
 
153
  <!-- Model Training -->
154
  <a href="/model-training" class="phase phase-7" target="_self">Model Training</a>
155
+ <div class="description">Train machine learning models on the prepared data and optimize parameters for improved performance.</div>
156
  <div class="arrow">⬇️</div>
157
 
158
  <!-- Model Testing -->
159
  <a href="/model-testing" class="phase phase-8" target="_self">Model Testing</a>
160
+ <div class="description">Evaluate the trained model on a validation or test dataset to assess accuracy, precision, and other metrics.</div>
161
  <div class="arrow">⬇️</div>
162
 
163
  <!-- Deployment -->
164
  <a href="/deployment" class="phase phase-9" target="_self">Deployment</a>
165
+ <div class="description">Deploy the model into a live system for real-time or batch processing of new data.</div>
166
  <div class="arrow">⬇️</div>
167
 
168
  <!-- Monitoring -->
169
  <a href="/monitoring" class="phase phase-10" target="_self">Monitoring</a>
170
+ <div class="description">Track model performance in production, addressing issues like data drift and performance degradation.</div>
171
  </div>
172
  """,
173
  unsafe_allow_html=True,