awacke1 commited on
Commit
e6f66da
ยท
1 Parent(s): 3501f33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -36
app.py CHANGED
@@ -13,42 +13,23 @@ graph = Digraph()
13
  graph.attr(rankdir="LR")
14
  graph.attr(fontsize="20")
15
  graph.attr(compound="true")
 
16
 
17
- # Add the swim lanes
18
- with graph.subgraph(name="cluster_0") as c:
19
- c.attr(color="gray")
20
- c.attr(label=SWIM_LANES["Data Pipelines"])
21
- c.node_attr.update(style="filled", color="white")
22
- c.node("๐Ÿ“Š Data Collection")
23
- c.node("๐Ÿงน Data Cleaning")
24
- c.node("๐Ÿ”ง Data Transformation")
25
-
26
- with graph.subgraph(name="cluster_1") as c:
27
- c.attr(color="gray")
28
- c.attr(label=SWIM_LANES["Build and Train Models"])
29
- c.node_attr.update(style="filled", color="white")
30
- c.node("๐Ÿ”Ž Feature Engineering")
31
- c.node("โš™๏ธ Model Selection")
32
- c.node("๐ŸŽ“ Model Training")
33
-
34
- with graph.subgraph(name="cluster_2") as c:
35
- c.attr(color="gray")
36
- c.attr(label=SWIM_LANES["Deploy and Predict"])
37
- c.node_attr.update(style="filled", color="white")
38
- c.node("๐Ÿšข Model Deployment")
39
- c.node("๐Ÿ“ก Model Serving")
40
- c.node("๐Ÿ”ฎ Predictions")
41
-
42
- # Add the RLHF step
43
- with graph.subgraph(name="cluster_3") as c:
44
- c.attr(color="lightblue")
45
- c.attr(label="Reinforcement Learning Human Feedback")
46
- c.node_attr.update(style="filled", color="white")
47
- c.node("๐Ÿ‘ Feedback Collection")
48
- c.node("๐Ÿค” Feedback Processing")
49
- c.node("โœ๏ธ Model Updating")
50
-
51
- # Define the edges
52
  graph.edge("๐Ÿ“Š Data Collection", "๐Ÿงน Data Cleaning")
53
  graph.edge("๐Ÿงน Data Cleaning", "๐Ÿ”ง Data Transformation")
54
  graph.edge("๐Ÿ”ง Data Transformation", "๐Ÿ”Ž Feature Engineering")
@@ -62,5 +43,31 @@ graph.edge("๐Ÿ‘ Feedback Collection", "๐Ÿค” Feedback Processing")
62
  graph.edge("๐Ÿค” Feedback Processing", "โœ๏ธ Model Updating")
63
  graph.edge("โœ๏ธ Model Updating", "๐ŸŽ“ Model Training")
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  # Render the graph in Streamlit
66
- st.graphviz_chart(graph.source)
 
13
  graph.attr(rankdir="LR")
14
  graph.attr(fontsize="20")
15
  graph.attr(compound="true")
16
+ graph.attr(nodesep="0.5")
17
 
18
+ # Define the nodes
19
+ graph.node("๐Ÿ“Š Data Collection")
20
+ graph.node("๐Ÿงน Data Cleaning")
21
+ graph.node("๐Ÿ”ง Data Transformation")
22
+ graph.node("๐Ÿ”Ž Feature Engineering")
23
+ graph.node("โš™๏ธ Model Selection")
24
+ graph.node("๐ŸŽ“ Model Training")
25
+ graph.node("๐Ÿšข Model Deployment")
26
+ graph.node("๐Ÿ“ก Model Serving")
27
+ graph.node("๐Ÿ”ฎ Predictions")
28
+ graph.node("๐Ÿ‘ Feedback Collection")
29
+ graph.node("๐Ÿค” Feedback Processing")
30
+ graph.node("โœ๏ธ Model Updating")
31
+
32
+ # Add the edges
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  graph.edge("๐Ÿ“Š Data Collection", "๐Ÿงน Data Cleaning")
34
  graph.edge("๐Ÿงน Data Cleaning", "๐Ÿ”ง Data Transformation")
35
  graph.edge("๐Ÿ”ง Data Transformation", "๐Ÿ”Ž Feature Engineering")
 
43
  graph.edge("๐Ÿค” Feedback Processing", "โœ๏ธ Model Updating")
44
  graph.edge("โœ๏ธ Model Updating", "๐ŸŽ“ Model Training")
45
 
46
+ # Add the swim lanes
47
+ with graph.subgraph(name="cluster_0") as c:
48
+ c.attr(rank="same")
49
+ c.attr(label=SWIM_LANES["Data Pipelines"])
50
+ c.edge("๐Ÿ“Š Data Collection", "๐Ÿงน Data Cleaning", style="invis")
51
+ c.edge("๐Ÿงน Data Cleaning", "๐Ÿ”ง Data Transformation", style="invis")
52
+
53
+ with graph.subgraph(name="cluster_1") as c:
54
+ c.attr(rank="same")
55
+ c.attr(label=SWIM_LANES["Build and Train Models"])
56
+ c.edge("๐Ÿ”Ž Feature Engineering", "โš™๏ธ Model Selection", style="invis")
57
+ c.edge("โš™๏ธ Model Selection", "๐ŸŽ“ Model Training", style="invis")
58
+
59
+ with graph.subgraph(name="cluster_2") as c:
60
+ c.attr(rank="same")
61
+ c.attr(label=SWIM_LANES["Deploy and Predict"])
62
+ c.edge("๐Ÿšข Model Deployment", "๐Ÿ“ก Model Serving", style="invis")
63
+ c.edge("๐Ÿ“ก Model Serving", "๐Ÿ”ฎ Predictions", style="invis")
64
+
65
+ with graph.subgraph(name="cluster_3") as c:
66
+ c.attr(rank="same")
67
+ c.attr(label="Reinforcement Learning Human Feedback")
68
+ c.edge("๐Ÿ”ฎ Predictions", "๐Ÿ‘ Feedback Collection", style="invis")
69
+ c.edge("๐Ÿ‘ Feedback Collection", "๐Ÿค” Feedback Processing", style="invis")
70
+ c.edge("๐Ÿค” Feedback Processing", "โœ๏ธ Model Updating", style="invis")
71
+
72
  # Render the graph in Streamlit
73
+ st.graphviz_chart(graph.source)