Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

plots.html 1.3 KB

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

Press p or to see the previous file or, n or to see the next file

Comments

Loading...