LakshmiHarika commited on
Commit
e4263d0
·
verified ·
1 Parent(s): cb14e9b

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

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -1,5 +1,4 @@
1
  import streamlit as st
2
- import streamlit as st
3
 
4
  # Page configuration
5
  st.set_page_config(
@@ -23,6 +22,12 @@ st.markdown("""
23
  margin-top: 20px;
24
  margin-bottom: 10px;
25
  }
 
 
 
 
 
 
26
  .circle-container {
27
  display: flex;
28
  justify-content: center;
@@ -37,6 +42,15 @@ st.markdown("""
37
  display: flex;
38
  justify-content: center;
39
  align-items: center;
 
 
 
 
 
 
 
 
 
40
  }
41
  .steps {
42
  position: absolute;
@@ -51,52 +65,68 @@ st.markdown("""
51
  width: 160px;
52
  height: 60px;
53
  font-size: 16px;
54
- background-color: #f0f8ff;
55
  color: black;
56
  border-radius: 30px;
57
  display: flex;
58
  justify-content: center;
59
  align-items: center;
60
  text-align: center;
61
- cursor: pointer;
62
  transform-origin: 50% 50%;
63
- transition: transform 0.3s ease, background-color 0.3s ease;
64
  font-weight: bold;
 
65
  }
66
- .step:hover {
67
- background-color: #e6e6fa;
68
- }
69
- #step1 { transform: rotate(0deg) translateX(320px) rotate(-0deg); }
70
- #step2 { transform: rotate(36deg) translateX(320px) rotate(-36deg); }
71
- #step3 { transform: rotate(72deg) translateX(320px) rotate(-72deg); }
72
- #step4 { transform: rotate(108deg) translateX(320px) rotate(-108deg); }
73
- #step5 { transform: rotate(144deg) translateX(320px) rotate(-144deg); }
74
- #step6 { transform: rotate(180deg) translateX(320px) rotate(-180deg); }
75
- #step7 { transform: rotate(216deg) translateX(320px) rotate(-216deg); }
76
- #step8 { transform: rotate(252deg) translateX(320px) rotate(-252deg); }
77
- #step9 { transform: rotate(288deg) translateX(320px) rotate(-288deg); }
78
- #step10 { transform: rotate(324deg) translateX(320px) rotate(-324deg); }
79
  </style>
80
  """, unsafe_allow_html=True)
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  # Render the circular layout
84
- st.markdown('<h1>Life Cycle of End-to-End ML Project</h1>', unsafe_allow_html=True)
85
- st.markdown("""
86
- <div class="circle-container">
87
- <div class="circle">
88
- <div class="steps">
89
- <div class="step" id="step1">Problem Statement</div>
90
- <div class="step" id="step2">Data Collection</div>
91
- <div class="step" id="step3">Simple EDA</div>
92
- <div class="step" id="step4">Data Preprocessing</div>
93
- <div class="step" id="step5">EDA</div>
94
- <div class="step" id="step6">Feature Engineering</div>
95
- <div class="step" id="step7">Model Training</div>
96
- <div class="step" id="step8">Model Testing</div>
97
- <div class="step" id="step9">Model Deployment</div>
98
- <div class="step" id="step10">Monitoring</div>
 
 
99
  </div>
100
  </div>
101
- </div>
102
- """, unsafe_allow_html=True)
 
 
1
  import streamlit as st
 
2
 
3
  # Page configuration
4
  st.set_page_config(
 
22
  margin-top: 20px;
23
  margin-bottom: 10px;
24
  }
25
+ .description {
26
+ text-align: center;
27
+ font-size: 18px;
28
+ margin-bottom: 30px;
29
+ color: #333333;
30
+ }
31
  .circle-container {
32
  display: flex;
33
  justify-content: center;
 
42
  display: flex;
43
  justify-content: center;
44
  align-items: center;
45
+ background: rgba(255, 255, 255, 0.8);
46
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
47
+ }
48
+ .circle h2 {
49
+ position: absolute;
50
+ font-size: 28px;
51
+ color: #BB3385;
52
+ font-weight: bold;
53
+ text-align: center;
54
  }
55
  .steps {
56
  position: absolute;
 
65
  width: 160px;
66
  height: 60px;
67
  font-size: 16px;
 
68
  color: black;
69
  border-radius: 30px;
70
  display: flex;
71
  justify-content: center;
72
  align-items: center;
73
  text-align: center;
 
74
  transform-origin: 50% 50%;
 
75
  font-weight: bold;
76
+ box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
77
  }
78
+ #step1 { transform: rotate(0deg) translateX(320px) rotate(-0deg); background-color: #FFCCCB; } /* Light Red */
79
+ #step2 { transform: rotate(36deg) translateX(320px) rotate(-36deg); background-color: #FFD700; } /* Gold */
80
+ #step3 { transform: rotate(72deg) translateX(320px) rotate(-72deg); background-color: #90EE90; } /* Light Green */
81
+ #step4 { transform: rotate(108deg) translateX(320px) rotate(-108deg); background-color: #ADD8E6; } /* Light Blue */
82
+ #step5 { transform: rotate(144deg) translateX(320px) rotate(-144deg); background-color: #FFB6C1; } /* Light Pink */
83
+ #step6 { transform: rotate(180deg) translateX(320px) rotate(-180deg); background-color: #FFA07A; } /* Light Salmon */
84
+ #step7 { transform: rotate(216deg) translateX(320px) rotate(-216deg); background-color: #D8BFD8; } /* Thistle */
85
+ #step8 { transform: rotate(252deg) translateX(320px) rotate(-252deg); background-color: #FFFFE0; } /* Light Yellow */
86
+ #step9 { transform: rotate(288deg) translateX(320px) rotate(-288deg); background-color: #E0FFFF; } /* Light Cyan */
87
+ #step10 { transform: rotate(324deg) translateX(320px) rotate(-324deg); background-color: #F5DEB3; } /* Wheat */
 
 
 
88
  </style>
89
  """, unsafe_allow_html=True)
90
 
91
+ # Render the title
92
+ st.markdown('<h1>Life Cycle of End-to-End ML Project</h1>', unsafe_allow_html=True)
93
+
94
+ # Add the description above the circular layout
95
+ st.markdown(
96
+ """
97
+ <div class="description">
98
+ - In this page, I will take you through the 10 crucial steps involved in the life cycle of a Machine Learning project.<br>
99
+ - These steps outline the entire process:
100
+ - Starting from defining the problem and collecting data.<br>
101
+ - Building, deploying, and monitoring the model.<br>
102
+ - Each step plays a significant role in ensuring the success of the project:
103
+ - Addressing technical and practical challenges along the way.<br>
104
+ - By following these steps, you can create a robust and efficient ML solution.
105
+ </div>
106
+ """,
107
+ unsafe_allow_html=True,
108
+ )
109
 
110
  # Render the circular layout
111
+ st.markdown(
112
+ """
113
+ <div class="circle-container">
114
+ <div class="circle">
115
+ <h2>Machine Learning</h2>
116
+ <div class="steps">
117
+ <div class="step" id="step1">1. Problem Statement</div>
118
+ <div class="step" id="step2">2. Data Collection</div>
119
+ <div class="step" id="step3">3. Simple EDA</div>
120
+ <div class="step" id="step4">4. Data Preprocessing</div>
121
+ <div class="step" id="step5">5. EDA</div>
122
+ <div class="step" id="step6">6. Feature Engineering</div>
123
+ <div class="step" id="step7">7. Model Training</div>
124
+ <div class="step" id="step8">8. Model Testing</div>
125
+ <div class="step" id="step9">9. Model Deployment</div>
126
+ <div class="step" id="step10">10. Monitoring</div>
127
+ </div>
128
  </div>
129
  </div>
130
+ """,
131
+ unsafe_allow_html=True
132
+ )