Spaces:
Sleeping
Sleeping
Update pages/Life_cycle_of_ML.py
Browse files- pages/Life_cycle_of_ML.py +54 -44
pages/Life_cycle_of_ML.py
CHANGED
@@ -1,50 +1,60 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
2 |
st.markdown('<div align="center">', unsafe_allow_html=True)
|
3 |
-
|
4 |
-
|
5 |
-
<a href="#problem-definition">
|
6 |
-
<rect x="50" y="50" width="150" height="50" fill="#FFB6C1" stroke="#000" />
|
7 |
-
<text x="75" y="80" fill="#000" font-size="14">Problem Definition</text>
|
8 |
-
</a>
|
9 |
-
''', unsafe_allow_html=True)
|
10 |
-
st.markdown('''
|
11 |
-
<a href="#data-collection">
|
12 |
-
<circle cx="300" cy="75" r="40" fill="#ADD8E6" stroke="#000" />
|
13 |
-
<text x="270" y="80" fill="#000" font-size="14">Data Collection</text>
|
14 |
-
</a>
|
15 |
-
''', unsafe_allow_html=True)
|
16 |
-
st.markdown('''
|
17 |
-
<a href="#data-preprocessing">
|
18 |
-
<ellipse cx="500" cy="75" rx="80" ry="40" fill="#90EE90" stroke="#000" />
|
19 |
-
<text x="445" y="80" fill="#000" font-size="14">Data Preprocessing</text>
|
20 |
-
</a>
|
21 |
-
''', unsafe_allow_html=True)
|
22 |
-
st.markdown('''
|
23 |
-
<line x1="200" y1="75" x2="260" y2="75" stroke="#000" marker-end="url(#arrow)" />
|
24 |
-
<line x1="340" y1="75" x2="420" y2="75" stroke="#000" marker-end="url(#arrow)" />
|
25 |
-
''', unsafe_allow_html=True)
|
26 |
-
st.markdown('''
|
27 |
-
<a href="#model-building">
|
28 |
-
<rect x="50" y="200" width="150" height="50" fill="#FFD700" stroke="#000" />
|
29 |
-
<text x="75" y="230" fill="#000" font-size="14">Model Building</text>
|
30 |
-
</a>
|
31 |
-
''', unsafe_allow_html=True)
|
32 |
-
st.markdown('''
|
33 |
-
<a href="#evaluation">
|
34 |
-
<circle cx="300" cy="225" r="40" fill="#FF7F50" stroke="#000" />
|
35 |
-
<text x="275" y="230" fill="#000" font-size="14">Evaluation</text>
|
36 |
-
</a>
|
37 |
-
''', unsafe_allow_html=True)
|
38 |
-
st.markdown('''
|
39 |
-
<a href="#deployment">
|
40 |
-
<rect x="450" y="200" width="150" height="50" fill="#9370DB" stroke="#000" />
|
41 |
-
<text x="475" y="230" fill="#000" font-size="14">Deployment</text>
|
42 |
-
</a>
|
43 |
-
''', unsafe_allow_html=True)
|
44 |
st.markdown('''
|
45 |
-
<
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
''', unsafe_allow_html=True)
|
48 |
-
|
|
|
49 |
st.markdown('</div>', unsafe_allow_html=True)
|
50 |
|
|
|
|
1 |
import streamlit as st
|
2 |
+
|
3 |
+
# Center alignment for SVG diagram
|
4 |
st.markdown('<div align="center">', unsafe_allow_html=True)
|
5 |
+
|
6 |
+
# SVG with shapes and buttons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
st.markdown('''
|
8 |
+
<svg width="600" height="400">
|
9 |
+
|
10 |
+
<!-- Problem Definition -->
|
11 |
+
<a href="#problem-definition">
|
12 |
+
<rect x="50" y="50" width="150" height="50" fill="#FFB6C1" stroke="#000" />
|
13 |
+
<text x="75" y="80" fill="#000" font-size="14">Problem Definition</text>
|
14 |
+
</a>
|
15 |
+
|
16 |
+
<!-- Data Collection -->
|
17 |
+
<a href="#data-collection">
|
18 |
+
<circle cx="300" cy="75" r="40" fill="#ADD8E6" stroke="#000" />
|
19 |
+
<text x="270" y="80" fill="#000" font-size="14">Data Collection</text>
|
20 |
+
</a>
|
21 |
+
|
22 |
+
<!-- Data Preprocessing -->
|
23 |
+
<a href="#data-preprocessing">
|
24 |
+
<ellipse cx="500" cy="75" rx="80" ry="40" fill="#90EE90" stroke="#000" />
|
25 |
+
<text x="445" y="80" fill="#000" font-size="14">Data Preprocessing</text>
|
26 |
+
</a>
|
27 |
+
|
28 |
+
<!-- Arrows -->
|
29 |
+
<line x1="200" y1="75" x2="260" y2="75" stroke="#000" marker-end="url(#arrow)" />
|
30 |
+
<line x1="340" y1="75" x2="420" y2="75" stroke="#000" marker-end="url(#arrow)" />
|
31 |
+
|
32 |
+
<!-- Model Building -->
|
33 |
+
<a href="#model-building">
|
34 |
+
<rect x="50" y="200" width="150" height="50" fill="#FFD700" stroke="#000" />
|
35 |
+
<text x="75" y="230" fill="#000" font-size="14">Model Building</text>
|
36 |
+
</a>
|
37 |
+
|
38 |
+
<!-- Evaluation -->
|
39 |
+
<a href="#evaluation">
|
40 |
+
<circle cx="300" cy="225" r="40" fill="#FF7F50" stroke="#000" />
|
41 |
+
<text x="275" y="230" fill="#000" font-size="14">Evaluation</text>
|
42 |
+
</a>
|
43 |
+
|
44 |
+
<!-- Deployment -->
|
45 |
+
<a href="#deployment">
|
46 |
+
<rect x="450" y="200" width="150" height="50" fill="#9370DB" stroke="#000" />
|
47 |
+
<text x="475" y="230" fill="#000" font-size="14">Deployment</text>
|
48 |
+
</a>
|
49 |
+
|
50 |
+
<!-- Arrows -->
|
51 |
+
<line x1="125" y1="250" x2="260" y2="225" stroke="#000" marker-end="url(#arrow)" />
|
52 |
+
<line x1="340" y1="225" x2="450" y2="225" stroke="#000" marker-end="url(#arrow)" />
|
53 |
+
|
54 |
+
</svg>
|
55 |
''', unsafe_allow_html=True)
|
56 |
+
|
57 |
+
# Close div
|
58 |
st.markdown('</div>', unsafe_allow_html=True)
|
59 |
|
60 |
+
|