Skip to content

Commit 20b582a

Browse files
authored
Fix vega-lite config to fix console warnings (#59)
* Fix vega-lite config to fix console warnings
1 parent 83fd018 commit 20b582a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Diff for: addition-rnn/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class AdditionRNNDemo {
286286
'data': {'values': lossValues},
287287
'mark': 'line',
288288
'encoding': {
289-
'x': {'field': 'epoch', 'type': 'quantitative'},
289+
'x': {'field': 'epoch', 'type': 'ordinal'},
290290
'y': {'field': 'loss', 'type': 'quantitative'},
291291
'color': {'field': 'set', 'type': 'nominal'},
292292
}
@@ -302,7 +302,7 @@ class AdditionRNNDemo {
302302
'data': {'values': accuracyValues},
303303
'mark': 'line',
304304
'encoding': {
305-
'x': {'field': 'epoch', 'type': 'quantitative'},
305+
'x': {'field': 'epoch', 'type': 'ordinal'},
306306
'y': {'field': 'accuracy', 'type': 'quantitative'},
307307
'color': {'field': 'set', 'type': 'nominal'},
308308
}
@@ -315,7 +315,7 @@ class AdditionRNNDemo {
315315
'data': {'values': examplesPerSecValues},
316316
'mark': 'line',
317317
'encoding': {
318-
'x': {'field': 'epoch', 'type': 'quantitative'},
318+
'x': {'field': 'epoch', 'type': 'ordinal'},
319319
'y': {'field': 'examples/s', 'type': 'quantitative'},
320320
}
321321
},

Diff for: iris/ui.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function plotLosses(lossValues, epoch, newTrainLoss, newValidationLoss) {
4747
'data': {'values': lossValues},
4848
'mark': 'line',
4949
'encoding': {
50-
'x': {'field': 'epoch', 'type': 'quantitative'},
50+
'x': {'field': 'epoch', 'type': 'ordinal'},
5151
'y': {'field': 'loss', 'type': 'quantitative'},
5252
'color': {'field': 'set', 'type': 'nominal'},
5353
}
@@ -75,7 +75,7 @@ export function plotAccuracies(
7575
'data': {'values': accuracyValues},
7676
'mark': 'line',
7777
'encoding': {
78-
'x': {'field': 'epoch', 'type': 'quantitative'},
78+
'x': {'field': 'epoch', 'type': 'ordinal'},
7979
'y': {'field': 'accuracy', 'type': 'quantitative'},
8080
'color': {'field': 'set', 'type': 'nominal'},
8181
}

Diff for: mnist/ui.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function plotLosses(lossValues) {
7171
'width': 260,
7272
'orient': 'vertical',
7373
'encoding': {
74-
'x': {'field': 'batch', 'type': 'quantitative'},
74+
'x': {'field': 'batch', 'type': 'ordinal'},
7575
'y': {'field': 'loss', 'type': 'quantitative'},
7676
'color': {'field': 'set', 'type': 'nominal', 'legend': null},
7777
}
@@ -90,7 +90,7 @@ export function plotAccuracies(accuracyValues) {
9090
'mark': {'type': 'line', 'legend': null},
9191
'orient': 'vertical',
9292
'encoding': {
93-
'x': {'field': 'batch', 'type': 'quantitative'},
93+
'x': {'field': 'batch', 'type': 'ordinal'},
9494
'y': {'field': 'accuracy', 'type': 'quantitative'},
9595
'color': {'field': 'set', 'type': 'nominal', 'legend': null},
9696
}

Diff for: polynomial-regression-core/ui.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
{
5959
'mark': 'point',
6060
'encoding': {
61-
'x': {'field': 'x', 'type': 'quantitative'},
61+
'x': {'field': 'x', 'type': 'ordinal'},
6262
'y': {'field': 'y', 'type': 'quantitative'}
6363
}
6464
},
6565
{
6666
'mark': 'line',
6767
'encoding': {
68-
'x': {'field': 'x', 'type': 'quantitative'},
68+
'x': {'field': 'x', 'type': 'ordinal'},
6969
'y': {'field': 'pred', 'type': 'quantitative'},
7070
'color': {'value': 'tomato'}
7171
},

0 commit comments

Comments
 (0)