LakshmiHarika commited on
Commit
1ecdd6a
·
verified ·
1 Parent(s): d274247

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

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -43,75 +43,48 @@ st.markdown(
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
  import streamlit as st
47
  from streamlit.components.v1 import html
48
 
49
- # Function to create a circular button
50
- def circular_button(label, link, position):
51
- button_html = f"""
52
- <style>
53
- .button {{
54
- display: inline-block;
55
- border-radius: 50%;
56
- background-color: #4CAF50;
57
- color: white;
58
- text-align: center;
59
- padding: 15px;
60
- width: 80px;
61
- height: 80px;
62
- text-decoration: none;
63
- font-size: 14px;
64
- position: absolute;
65
- {position}
66
- }}
67
- </style>
68
- <a href="{link}" class="button">{label}</a>
 
69
  """
70
- html(button_html)
71
 
72
  # Title
73
- st.title("Machine Learning Life Cycle")
74
- st.write("Click on any step to navigate.")
75
-
76
- # Container for circular layout
77
- circular_layout = """
78
- <div style="position: relative; width: 400px; height: 400px; margin: 0 auto;">
79
- </div>
80
- """
81
-
82
- # Add buttons in circular flow using positions
83
- html("""
84
- <div style="position: relative; width: 400px; height: 400px; margin: 0 auto;">
85
-
86
- <!-- Step 1 -->
87
- <a href="?page=1" class="button" style="top: 0%; left: 50%; transform: translate(-50%, -50%);">Step 1</a>
88
-
89
- <!-- Step 2 -->
90
- <a href="?page=2" class="button" style="top: 20%; left: 75%; transform: translate(-50%, -50%);">Step 2</a>
91
-
92
- <!-- Step 3 -->
93
- <a href="?page=3" class="button" style="top: 50%; left: 90%; transform: translate(-50%, -50%);">Step 3</a>
94
-
95
- <!-- Step 4 -->
96
- <a href="?page=4" class="button" style="top: 75%; left: 75%; transform: translate(-50%, -50%);">Step 4</a>
97
-
98
- <!-- Step 5 -->
99
- <a href="?page=5" class="button" style="top: 100%; left: 50%; transform: translate(-50%, -50%);">Step 5</a>
100
-
101
- <!-- Step 6 -->
102
- <a href="?page=6" class="button" style="top: 75%; left: 25%; transform: translate(-50%, -50%);">Step 6</a>
103
-
104
- <!-- Step 7 -->
105
- <a href="?page=7" class="button" style="top: 50%; left: 10%; transform: translate(-50%, -50%);">Step 7</a>
106
-
107
- <!-- Step 8 -->
108
- <a href="?page=8" class="button" style="top: 20%; left: 25%; transform: translate(-50%, -50%);">Step 8</a>
109
-
110
- <!-- Step 9 -->
111
- <a href="?page=9" class="button" style="top: 0%; left: 50%; transform: translate(-50%, -50%);">Step 9</a>
112
-
113
- <!-- Step 10 -->
114
- <a href="?page=10" class="button" style="top: -10%; left: 75%; transform: translate(-50%, -50%);">Step 10</a>
115
-
116
- </div>
117
- """, height=500)
 
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
  import streamlit as st
50
  from streamlit.components.v1 import html
51
 
52
+ # Function to create a vertical step with custom colors and navigation
53
+ def vertical_step(label, link, color):
54
+ step_html = f"""
55
+ <div style="width: 300px; margin: 20px auto; text-align: center;">
56
+ <a href="{link}" style="
57
+ display: inline-block;
58
+ background-color: {color};
59
+ color: white;
60
+ padding: 15px 20px;
61
+ text-decoration: none;
62
+ font-size: 16px;
63
+ border-radius: 5px;
64
+ font-weight: bold;
65
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
66
+ ">
67
+ {label}
68
+ </a>
69
+ <div style="margin: 10px auto;">
70
+ <span style="font-size: 20px; color: green;">&#x2713;</span>
71
+ </div>
72
+ </div>
73
  """
74
+ html(step_html)
75
 
76
  # Title
77
+ st.title("Machine Learning Workflow")
78
+ st.write("Click on a step to navigate to its details.")
79
+
80
+ # Steps with navigation
81
+ vertical_step("Problem Statement", "?page=1", "#4A90E2")
82
+ vertical_step("Data Collection", "?page=2", "#F25C54")
83
+ vertical_step("Simple EDA", "?page=3", "#F7C948")
84
+ vertical_step("Data Pre-processing", "?page=4", "#00B159")
85
+ vertical_step("EDA", "?page=5", "#D76AC3")
86
+ vertical_step("Feature Engineering", "?page=6", "#6A4C93")
87
+ vertical_step("Model Building", "?page=7", "#F25C54")
88
+ vertical_step("Evaluation", "?page=8", "#4A90E2")
89
+ vertical_step("Deployment", "?page=9", "#00B159")
90
+ vertical_step("Monitoring", "?page=10", "#D76AC3")