Skip to content

Commit 4cc03ad

Browse files
author
Corentin M
committed
Initialize DVC
1 parent 6299f58 commit 4cc03ad

9 files changed

+515
-0
lines changed

.dvc/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/config.local
2+
/tmp
3+
/cache

.dvc/config

Whitespace-only changes.

.dvc/plots/confusion.json

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
3+
"data": {
4+
"values": "<DVC_METRIC_DATA>"
5+
},
6+
"title": "<DVC_METRIC_TITLE>",
7+
"facet": {
8+
"field": "rev",
9+
"type": "nominal"
10+
},
11+
"spec": {
12+
"transform": [
13+
{
14+
"aggregate": [
15+
{
16+
"op": "count",
17+
"as": "xy_count"
18+
}
19+
],
20+
"groupby": [
21+
"<DVC_METRIC_Y>",
22+
"<DVC_METRIC_X>"
23+
]
24+
},
25+
{
26+
"impute": "xy_count",
27+
"groupby": [
28+
"rev",
29+
"<DVC_METRIC_Y>"
30+
],
31+
"key": "<DVC_METRIC_X>",
32+
"value": 0
33+
},
34+
{
35+
"impute": "xy_count",
36+
"groupby": [
37+
"rev",
38+
"<DVC_METRIC_X>"
39+
],
40+
"key": "<DVC_METRIC_Y>",
41+
"value": 0
42+
},
43+
{
44+
"joinaggregate": [
45+
{
46+
"op": "max",
47+
"field": "xy_count",
48+
"as": "max_count"
49+
}
50+
],
51+
"groupby": []
52+
},
53+
{
54+
"calculate": "datum.xy_count / datum.max_count",
55+
"as": "percent_of_max"
56+
}
57+
],
58+
"encoding": {
59+
"x": {
60+
"field": "<DVC_METRIC_X>",
61+
"type": "nominal",
62+
"sort": "ascending",
63+
"title": "<DVC_METRIC_X_LABEL>"
64+
},
65+
"y": {
66+
"field": "<DVC_METRIC_Y>",
67+
"type": "nominal",
68+
"sort": "ascending",
69+
"title": "<DVC_METRIC_Y_LABEL>"
70+
}
71+
},
72+
"layer": [
73+
{
74+
"mark": "rect",
75+
"width": 300,
76+
"height": 300,
77+
"encoding": {
78+
"color": {
79+
"field": "xy_count",
80+
"type": "quantitative",
81+
"title": "",
82+
"scale": {
83+
"domainMin": 0,
84+
"nice": true
85+
}
86+
}
87+
}
88+
},
89+
{
90+
"mark": "text",
91+
"encoding": {
92+
"text": {
93+
"field": "xy_count",
94+
"type": "quantitative"
95+
},
96+
"color": {
97+
"condition": {
98+
"test": "datum.percent_of_max > 0.5",
99+
"value": "white"
100+
},
101+
"value": "black"
102+
}
103+
}
104+
}
105+
]
106+
}
107+
}

.dvc/plots/confusion_normalized.json

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
3+
"data": {
4+
"values": "<DVC_METRIC_DATA>"
5+
},
6+
"title": "<DVC_METRIC_TITLE>",
7+
"facet": {
8+
"field": "rev",
9+
"type": "nominal"
10+
},
11+
"spec": {
12+
"transform": [
13+
{
14+
"aggregate": [
15+
{
16+
"op": "count",
17+
"as": "xy_count"
18+
}
19+
],
20+
"groupby": [
21+
"<DVC_METRIC_Y>",
22+
"<DVC_METRIC_X>"
23+
]
24+
},
25+
{
26+
"impute": "xy_count",
27+
"groupby": [
28+
"rev",
29+
"<DVC_METRIC_Y>"
30+
],
31+
"key": "<DVC_METRIC_X>",
32+
"value": 0
33+
},
34+
{
35+
"impute": "xy_count",
36+
"groupby": [
37+
"rev",
38+
"<DVC_METRIC_X>"
39+
],
40+
"key": "<DVC_METRIC_Y>",
41+
"value": 0
42+
},
43+
{
44+
"joinaggregate": [
45+
{
46+
"op": "sum",
47+
"field": "xy_count",
48+
"as": "sum_y"
49+
}
50+
],
51+
"groupby": [
52+
"<DVC_METRIC_Y>"
53+
]
54+
},
55+
{
56+
"calculate": "datum.xy_count / datum.sum_y",
57+
"as": "percent_of_y"
58+
}
59+
],
60+
"encoding": {
61+
"x": {
62+
"field": "<DVC_METRIC_X>",
63+
"type": "nominal",
64+
"sort": "ascending",
65+
"title": "<DVC_METRIC_X_LABEL>"
66+
},
67+
"y": {
68+
"field": "<DVC_METRIC_Y>",
69+
"type": "nominal",
70+
"sort": "ascending",
71+
"title": "<DVC_METRIC_Y_LABEL>"
72+
}
73+
},
74+
"layer": [
75+
{
76+
"mark": "rect",
77+
"width": 300,
78+
"height": 300,
79+
"encoding": {
80+
"color": {
81+
"field": "percent_of_y",
82+
"type": "quantitative",
83+
"title": "",
84+
"scale": {
85+
"domain": [
86+
0,
87+
1
88+
]
89+
}
90+
}
91+
}
92+
},
93+
{
94+
"mark": "text",
95+
"encoding": {
96+
"text": {
97+
"field": "percent_of_y",
98+
"type": "quantitative",
99+
"format": ".2f"
100+
},
101+
"color": {
102+
"condition": {
103+
"test": "datum.percent_of_y > 0.5",
104+
"value": "white"
105+
},
106+
"value": "black"
107+
}
108+
}
109+
}
110+
]
111+
}
112+
}

.dvc/plots/default.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
3+
"data": {
4+
"values": "<DVC_METRIC_DATA>"
5+
},
6+
"title": "<DVC_METRIC_TITLE>",
7+
"width": 300,
8+
"height": 300,
9+
"mark": {
10+
"type": "line"
11+
},
12+
"encoding": {
13+
"x": {
14+
"field": "<DVC_METRIC_X>",
15+
"type": "quantitative",
16+
"title": "<DVC_METRIC_X_LABEL>"
17+
},
18+
"y": {
19+
"field": "<DVC_METRIC_Y>",
20+
"type": "quantitative",
21+
"title": "<DVC_METRIC_Y_LABEL>",
22+
"scale": {
23+
"zero": false
24+
}
25+
},
26+
"color": {
27+
"field": "rev",
28+
"type": "nominal"
29+
}
30+
}
31+
}

.dvc/plots/linear.json

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
3+
"data": {
4+
"values": "<DVC_METRIC_DATA>"
5+
},
6+
"title": "<DVC_METRIC_TITLE>",
7+
"width": 300,
8+
"height": 300,
9+
"layer": [
10+
{
11+
"encoding": {
12+
"x": {
13+
"field": "<DVC_METRIC_X>",
14+
"type": "quantitative",
15+
"title": "<DVC_METRIC_X_LABEL>"
16+
},
17+
"y": {
18+
"field": "<DVC_METRIC_Y>",
19+
"type": "quantitative",
20+
"title": "<DVC_METRIC_Y_LABEL>",
21+
"scale": {
22+
"zero": false
23+
}
24+
},
25+
"color": {
26+
"field": "rev",
27+
"type": "nominal"
28+
}
29+
},
30+
"layer": [
31+
{
32+
"mark": "line"
33+
},
34+
{
35+
"selection": {
36+
"label": {
37+
"type": "single",
38+
"nearest": true,
39+
"on": "mouseover",
40+
"encodings": [
41+
"x"
42+
],
43+
"empty": "none",
44+
"clear": "mouseout"
45+
}
46+
},
47+
"mark": "point",
48+
"encoding": {
49+
"opacity": {
50+
"condition": {
51+
"selection": "label",
52+
"value": 1
53+
},
54+
"value": 0
55+
}
56+
}
57+
}
58+
]
59+
},
60+
{
61+
"transform": [
62+
{
63+
"filter": {
64+
"selection": "label"
65+
}
66+
}
67+
],
68+
"layer": [
69+
{
70+
"mark": {
71+
"type": "rule",
72+
"color": "gray"
73+
},
74+
"encoding": {
75+
"x": {
76+
"field": "<DVC_METRIC_X>",
77+
"type": "quantitative"
78+
}
79+
}
80+
},
81+
{
82+
"encoding": {
83+
"text": {
84+
"type": "quantitative",
85+
"field": "<DVC_METRIC_Y>"
86+
},
87+
"x": {
88+
"field": "<DVC_METRIC_X>",
89+
"type": "quantitative"
90+
},
91+
"y": {
92+
"field": "<DVC_METRIC_Y>",
93+
"type": "quantitative"
94+
}
95+
},
96+
"layer": [
97+
{
98+
"mark": {
99+
"type": "text",
100+
"align": "left",
101+
"dx": 5,
102+
"dy": -5
103+
},
104+
"encoding": {
105+
"color": {
106+
"type": "nominal",
107+
"field": "rev"
108+
}
109+
}
110+
}
111+
]
112+
}
113+
]
114+
}
115+
]
116+
}

0 commit comments

Comments
 (0)