Spaces:
Sleeping
Sleeping
Update pages/Life_cycle_of_ML.py
Browse files- pages/Life_cycle_of_ML.py +40 -22
pages/Life_cycle_of_ML.py
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
3 |
-
# HTML content inside a string for correct syntax
|
4 |
html_content = """
|
5 |
# Life Cycle of ML
|
6 |
|
@@ -15,26 +13,46 @@ The life cycle of Machine Learning (ML) involves several stages, from defining t
|
|
15 |
|
16 |
---
|
17 |
|
18 |
-
##
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
<
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
<
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<!--
|
37 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</svg>
|
39 |
"""
|
40 |
|
|
|
1 |
import streamlit as st
|
|
|
|
|
2 |
html_content = """
|
3 |
# Life Cycle of ML
|
4 |
|
|
|
13 |
|
14 |
---
|
15 |
|
16 |
+
## ML Life Cycle
|
17 |
+
|
18 |
+
<svg width="600" height="300">
|
19 |
+
<!-- Problem Definition (Rectangle) -->
|
20 |
+
<rect x="50" y="50" width="150" height="50" fill="#FFB6C1" stroke="#000" />
|
21 |
+
<text x="75" y="80" fill="#000" font-size="14">Problem Definition</text>
|
22 |
+
|
23 |
+
<!-- Data Collection (Circle) -->
|
24 |
+
<circle cx="300" cy="75" r="40" fill="#ADD8E6" stroke="#000" />
|
25 |
+
<text x="270" y="80" fill="#000" font-size="14">Data Collection</text>
|
26 |
+
|
27 |
+
<!-- Data Preprocessing (Ellipse) -->
|
28 |
+
<ellipse cx="500" cy="75" rx="80" ry="40" fill="#90EE90" stroke="#000" />
|
29 |
+
<text x="445" y="80" fill="#000" font-size="14">Data Preprocessing</text>
|
30 |
+
|
31 |
+
<!-- Arrows between Problem Definition and Data Collection -->
|
32 |
+
<line x1="200" y1="75" x2="260" y2="75" stroke="#000" marker-end="url(#arrow)" />
|
33 |
+
|
34 |
+
<!-- Model Building (Rectangle) -->
|
35 |
+
<rect x="50" y="200" width="150" height="50" fill="#FFD700" stroke="#000" />
|
36 |
+
<text x="75" y="230" fill="#000" font-size="14">Model Building</text>
|
37 |
+
|
38 |
+
<!-- Evaluation (Circle) -->
|
39 |
+
<circle cx="300" cy="225" r="40" fill="#FF7F50" stroke="#000" />
|
40 |
+
<text x="275" y="230" fill="#000" font-size="14">Evaluation</text>
|
41 |
+
|
42 |
+
<!-- Deployment (Rectangle) -->
|
43 |
+
<rect x="450" y="200" width="150" height="50" fill="#9370DB" stroke="#000" />
|
44 |
+
<text x="475" y="230" fill="#000" font-size="14">Deployment</text>
|
45 |
+
|
46 |
+
<!-- Arrows between Model Building, Evaluation, and Deployment -->
|
47 |
+
<line x1="125" y1="250" x2="260" y2="225" stroke="#000" marker-end="url(#arrow)" />
|
48 |
+
<line x1="340" y1="225" x2="450" y2="225" stroke="#000" marker-end="url(#arrow)" />
|
49 |
+
|
50 |
+
<!-- Define arrow marker -->
|
51 |
+
<defs>
|
52 |
+
<marker id="arrow" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="4" markerHeight="4" orient="auto">
|
53 |
+
<polygon points="0,0 10,5 0,10" fill="#000" />
|
54 |
+
</marker>
|
55 |
+
</defs>
|
56 |
</svg>
|
57 |
"""
|
58 |
|