LakshmiHarika commited on
Commit
8e56532
·
verified ·
1 Parent(s): d2d9cb5

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

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -47,7 +47,7 @@ st.markdown("""
47
 
48
  import streamlit as st
49
 
50
- # Inject custom CSS for the vertical flowchart
51
  st.markdown(
52
  """
53
  <style>
@@ -60,52 +60,48 @@ st.markdown(
60
  align-items: center;
61
  }
62
 
63
- /* Styling for each phase (rectangle) */
64
  .phase {
65
  position: relative;
66
  width: 300px; /* Rectangle width */
67
  height: 60px; /* Rectangle height */
68
- background-color: #E0E0E0; /* Neutral light background */
69
- color: #000000; /* Black text */
70
  border-radius: 8px; /* Rounded edges */
71
- display: flex;
72
- justify-content: center;
73
- align-items: center;
74
  font-size: 16px; /* Text size */
75
  font-weight: bold;
76
  text-align: center;
77
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
78
  margin-bottom: 10px; /* Space between steps */
79
  font-family: Arial, sans-serif;
80
- }
81
-
82
- /* Arrow styling */
83
- .arrow {
84
- width: 40px;
85
- height: 40px;
86
  display: flex;
87
  justify-content: center;
88
  align-items: center;
89
- font-size: 24px; /* Larger arrow size */
90
- color: #4F4F4F; /* Neutral dark arrow color */
91
- margin: 10px 0; /* Space for arrow */
92
  }
93
 
94
- /* Custom slightly darker colors for each phase */
95
- .phase-1 { background-color: #D4ECDD; } /* Slightly darker green */
96
- .phase-2 { background-color: #CDE7F0; } /* Slightly darker blue */
97
- .phase-3 { background-color: #FFF4B3; } /* Slightly darker yellow */
98
- .phase-4 { background-color: #FFD8A8; } /* Slightly darker orange */
99
- .phase-5 { background-color: #CCE1B5; } /* Slightly darker light green */
100
- .phase-6 { background-color: #C2B9DA; } /* Slightly darker purple */
101
- .phase-7 { background-color: #F2A2B7; } /* Slightly darker pink */
102
- .phase-8 { background-color: #BAC6CF; } /* Slightly darker gray-blue */
103
- .phase-9 { background-color: #9FD5DC; } /* Slightly darker cyan */
104
- .phase-10 { background-color: #FFD572; } /* Slightly darker amber */
105
 
106
  .phase:hover {
107
  transform: scale(1.05);
108
- background-color: #F0F0F0; /* Slightly lighter on hover */
 
 
 
 
 
 
 
109
  }
110
  </style>
111
  """,
@@ -116,26 +112,26 @@ st.markdown(
116
  st.markdown(
117
  """
118
  <div class="vertical-flowchart">
119
- <!-- Phases -->
120
- <div class="phase phase-1">Problem Statement</div>
121
  <div class="arrow">⬇️</div>
122
- <div class="phase phase-2">Data Collection</div>
123
  <div class="arrow">⬇️</div>
124
- <div class="phase phase-3">Simple EDA</div>
125
  <div class="arrow">⬇️</div>
126
- <div class="phase phase-4">Data Preprocessing</div>
127
  <div class="arrow">⬇️</div>
128
- <div class="phase phase-5">EDA</div>
129
  <div class="arrow">⬇️</div>
130
- <div class="phase phase-6">Feature Engineering</div>
131
  <div class="arrow">⬇️</div>
132
- <div class="phase phase-7">Model Training</div>
133
  <div class="arrow">⬇️</div>
134
- <div class="phase phase-8">Model Testing</div>
135
  <div class="arrow">⬇️</div>
136
- <div class="phase phase-9">Deployment</div>
137
  <div class="arrow">⬇️</div>
138
- <div class="phase phase-10">Monitoring</div>
139
  </div>
140
  """,
141
  unsafe_allow_html=True,
 
47
 
48
  import streamlit as st
49
 
50
+ # Inject custom CSS for the flowchart
51
  st.markdown(
52
  """
53
  <style>
 
60
  align-items: center;
61
  }
62
 
63
+ /* Styling for each phase (rectangle button) */
64
  .phase {
65
  position: relative;
66
  width: 300px; /* Rectangle width */
67
  height: 60px; /* Rectangle height */
68
+ border: none; /* Remove border */
 
69
  border-radius: 8px; /* Rounded edges */
 
 
 
70
  font-size: 16px; /* Text size */
71
  font-weight: bold;
72
  text-align: center;
73
+ cursor: pointer;
74
  margin-bottom: 10px; /* Space between steps */
75
  font-family: Arial, sans-serif;
 
 
 
 
 
 
76
  display: flex;
77
  justify-content: center;
78
  align-items: center;
79
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
80
+ transition: transform 0.3s ease, background-color 0.3s ease;
 
81
  }
82
 
83
+ /* Colors for each phase (original colors) */
84
+ .phase-1 { background-color: #4CAF50; color: black; } /* Green */
85
+ .phase-2 { background-color: #03A9F4; color: black; } /* Blue */
86
+ .phase-3 { background-color: #FFC107; color: black; } /* Yellow */
87
+ .phase-4 { background-color: #FF7043; color: black; } /* Orange */
88
+ .phase-5 { background-color: #8BC34A; color: black; } /* Light Green */
89
+ .phase-6 { background-color: #673AB7; color: black; } /* Purple */
90
+ .phase-7 { background-color: #E91E63; color: black; } /* Pink */
91
+ .phase-8 { background-color: #607D8B; color: black; } /* Gray-Blue */
92
+ .phase-9 { background-color: #00BCD4; color: black; } /* Cyan */
93
+ .phase-10 { background-color: #FF9800; color: black; } /* Amber */
94
 
95
  .phase:hover {
96
  transform: scale(1.05);
97
+ background-color: #E9ECEF; /* Slightly lighter on hover */
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
  </style>
107
  """,
 
112
  st.markdown(
113
  """
114
  <div class="vertical-flowchart">
115
+ <!-- Buttons for each phase -->
116
+ <a href="/problem-statement" class="phase phase-1" target="_self">Problem Statement</a>
117
  <div class="arrow">⬇️</div>
118
+ <a href="/data-collection" class="phase phase-2" target="_self">Data Collection</a>
119
  <div class="arrow">⬇️</div>
120
+ <a href="/simple-eda" class="phase phase-3" target="_self">Simple EDA</a>
121
  <div class="arrow">⬇️</div>
122
+ <a href="/data-preprocessing" class="phase phase-4" target="_self">Data Preprocessing</a>
123
  <div class="arrow">⬇️</div>
124
+ <a href="/eda" class="phase phase-5" target="_self">EDA</a>
125
  <div class="arrow">⬇️</div>
126
+ <a href="/feature-engineering" class="phase phase-6" target="_self">Feature Engineering</a>
127
  <div class="arrow">⬇️</div>
128
+ <a href="/model-training" class="phase phase-7" target="_self">Model Training</a>
129
  <div class="arrow">⬇️</div>
130
+ <a href="/model-testing" class="phase phase-8" target="_self">Model Testing</a>
131
  <div class="arrow">⬇️</div>
132
+ <a href="/deployment" class="phase phase-9" target="_self">Deployment</a>
133
  <div class="arrow">⬇️</div>
134
+ <a href="/monitoring" class="phase phase-10" target="_self">Monitoring</a>
135
  </div>
136
  """,
137
  unsafe_allow_html=True,