-
Notifications
You must be signed in to change notification settings - Fork 0
/
plots.html
58 lines (58 loc) · 1.27 KB
/
plots.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<title>DVC Plot</title>
<script src="https://cdn.jsdelivr.net/npm/vega@5.10.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@4.8.1"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.5.1"></script>
</head>
<body>
<div id = "plot0"></div>
<script type = "text/javascript">
var spec = {
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"values": [
{
"precision": 0.3854748603351955,
"recall": 1.0,
"rev": "workspace",
"threshold": 0.0
},
{
"precision": 0.8076923076923077,
"recall": 0.6086956521739131,
"rev": "workspace",
"threshold": 1.0
}
]
},
"title": "",
"mark": {
"type": "line"
},
"encoding": {
"x": {
"field": "recall",
"type": "quantitative",
"title": "recall"
},
"y": {
"field": "precision",
"type": "quantitative",
"title": "precision",
"scale": {
"zero": false
}
},
"color": {
"field": "rev",
"type": "nominal"
}
}
}
;
vegaEmbed('#plot0', spec);
</script>
</body>
</html>