Spaces:
Sleeping
Sleeping
Update pages/Life_cycle_of_ML.py
Browse files- pages/Life_cycle_of_ML.py +29 -35
pages/Life_cycle_of_ML.py
CHANGED
@@ -3,61 +3,55 @@ import streamlit as st
|
|
3 |
# Center alignment for SVG diagram
|
4 |
st.markdown('<div style="text-align: center;">', unsafe_allow_html=True)
|
5 |
|
6 |
-
# SVG
|
7 |
st.markdown('''
|
8 |
-
<svg width="
|
9 |
|
10 |
-
<!--
|
11 |
<defs>
|
12 |
-
<marker id="arrow" markerWidth="10" markerHeight="10" refX="5" refY="
|
13 |
-
<path d="M0,0
|
14 |
</marker>
|
15 |
</defs>
|
16 |
|
17 |
<!-- Problem Definition -->
|
18 |
-
<
|
19 |
-
|
20 |
-
<text x="75" y="80" fill="#000" font-size="14">Problem Definition</text>
|
21 |
-
</a>
|
22 |
|
23 |
<!-- Data Collection -->
|
24 |
-
<
|
25 |
-
|
26 |
-
<text x="270" y="80" fill="#000" font-size="14">Data Collection</text>
|
27 |
-
</a>
|
28 |
|
29 |
<!-- Data Preprocessing -->
|
30 |
-
<
|
31 |
-
|
32 |
-
<text x="445" y="80" fill="#000" font-size="14">Data Preprocessing</text>
|
33 |
-
</a>
|
34 |
-
|
35 |
-
<!-- Arrows -->
|
36 |
-
<line x1="200" y1="75" x2="260" y2="75" stroke="#000" marker-end="url(#arrow)" />
|
37 |
-
<line x1="340" y1="75" x2="420" y2="75" stroke="#000" marker-end="url(#arrow)" />
|
38 |
|
39 |
<!-- Model Building -->
|
40 |
-
<
|
41 |
-
|
42 |
-
<text x="75" y="230" fill="#000" font-size="14">Model Building</text>
|
43 |
-
</a>
|
44 |
|
45 |
-
<!-- Evaluation -->
|
46 |
-
<
|
47 |
-
|
48 |
-
<text x="275" y="230" fill="#000" font-size="14">Evaluation</text>
|
49 |
-
</a>
|
50 |
|
51 |
<!-- Deployment -->
|
52 |
-
<
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
</svg>
|
57 |
''', unsafe_allow_html=True)
|
58 |
|
59 |
-
#
|
60 |
st.markdown('</div>', unsafe_allow_html=True)
|
61 |
|
62 |
|
63 |
|
|
|
|
3 |
# Center alignment for SVG diagram
|
4 |
st.markdown('<div style="text-align: center;">', unsafe_allow_html=True)
|
5 |
|
6 |
+
# SVG Diagram for Machine Learning Life Cycle
|
7 |
st.markdown('''
|
8 |
+
<svg width="700" height="500">
|
9 |
|
10 |
+
<!-- Definitions for arrowheads -->
|
11 |
<defs>
|
12 |
+
<marker id="arrow" markerWidth="10" markerHeight="10" refX="5" refY="5" orient="auto">
|
13 |
+
<path d="M0,0 L10,5 L0,10 z" fill="#000" />
|
14 |
</marker>
|
15 |
</defs>
|
16 |
|
17 |
<!-- Problem Definition -->
|
18 |
+
<rect x="50" y="50" width="200" height="50" fill="#FFD700" stroke="#000" />
|
19 |
+
<text x="70" y="80" fill="#000" font-size="14">Problem Definition</text>
|
|
|
|
|
20 |
|
21 |
<!-- Data Collection -->
|
22 |
+
<rect x="50" y="150" width="200" height="50" fill="#ADD8E6" stroke="#000" />
|
23 |
+
<text x="70" y="180" fill="#000" font-size="14">Data Collection</text>
|
|
|
|
|
24 |
|
25 |
<!-- Data Preprocessing -->
|
26 |
+
<rect x="50" y="250" width="200" height="50" fill="#90EE90" stroke="#000" />
|
27 |
+
<text x="70" y="280" fill="#000" font-size="14">Data Preprocessing</text>
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
<!-- Model Building -->
|
30 |
+
<rect x="350" y="150" width="200" height="50" fill="#FFB6C1" stroke="#000" />
|
31 |
+
<text x="370" y="180" fill="#000" font-size="14">Model Building</text>
|
|
|
|
|
32 |
|
33 |
+
<!-- Model Evaluation -->
|
34 |
+
<rect x="350" y="250" width="200" height="50" fill="#9370DB" stroke="#000" />
|
35 |
+
<text x="370" y="280" fill="#000" font-size="14">Model Evaluation</text>
|
|
|
|
|
36 |
|
37 |
<!-- Deployment -->
|
38 |
+
<rect x="200" y="400" width="200" height="50" fill="#FF7F50" stroke="#000" />
|
39 |
+
<text x="230" y="430" fill="#000" font-size="14">Deployment</text>
|
40 |
+
|
41 |
+
<!-- Arrows -->
|
42 |
+
<line x1="150" y1="100" x2="150" y2="150" stroke="#000" marker-end="url(#arrow)" />
|
43 |
+
<line x1="150" y1="200" x2="150" y2="250" stroke="#000" marker-end="url(#arrow)" />
|
44 |
+
<line x1="250" y1="175" x2="350" y2="175" stroke="#000" marker-end="url(#arrow)" />
|
45 |
+
<line x1="450" y1="200" x2="450" y2="250" stroke="#000" marker-end="url(#arrow)" />
|
46 |
+
<line x1="350" y1="275" x2="250" y2="275" stroke="#000" marker-end="url(#arrow)" />
|
47 |
+
<line x1="300" y1="300" x2="300" y2="400" stroke="#000" marker-end="url(#arrow)" />
|
48 |
+
|
49 |
</svg>
|
50 |
''', unsafe_allow_html=True)
|
51 |
|
52 |
+
# Closing div
|
53 |
st.markdown('</div>', unsafe_allow_html=True)
|
54 |
|
55 |
|
56 |
|
57 |
+
|