Sathwikchowdary commited on
Commit
655fbe9
·
verified ·
1 Parent(s): 5216964

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. 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
- ## Shapes Representing the ML Life Cycle
19
-
20
- ### Rectangle: Problem Definition
21
- <div style="width: 200px; height: 100px; background-color: lightblue;"></div>
22
-
23
- ### Circle: Data Collection
24
- <div style="width: 100px; height: 100px; border-radius: 50%; background-color: lightcoral;"></div>
25
-
26
- ### Ellipse: Data Preprocessing
27
- <div style="width: 200px; height: 100px; border-radius: 50%; background-color: lightgreen;"></div>
28
-
29
- ### SVG Shapes Representing ML Life Cycle
30
-
31
- <svg width="300" height="200">
32
- <!-- Rectangle: Problem Definition -->
33
- <rect x="10" y="10" width="100" height="50" style="fill:lightblue;stroke:black;stroke-width:2" />
34
- <!-- Circle: Data Collection -->
35
- <circle cx="200" cy="50" r="40" style="fill:lightcoral;stroke:black;stroke-width:2" />
36
- <!-- Ellipse: Data Preprocessing -->
37
- <ellipse cx="200" cy="150" rx="85" ry="55" style="fill:lightgreen;stroke:black;stroke-width:2" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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