Skip to content

Commit 960c1b2

Browse files
tafsiricaisq
authored andcommitted
Update examples to tfjs vis 1.0.3 (tensorflow#246)
1 parent 9a0bf29 commit 960c1b2

File tree

32 files changed

+666
-622
lines changed

32 files changed

+666
-622
lines changed

addition-rnn/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class AdditionRNNDemo {
284284
iterations}: Model fit time ${modelFitTime.toFixed(6)} (seconds)`;
285285
const lossContainer = document.getElementById('lossChart');
286286
tfvis.render.linechart(
287-
{values: lossValues, series: ['train', 'validation']}, lossContainer,
287+
lossContainer, {values: lossValues, series: ['train', 'validation']},
288288
{
289289
width: 420,
290290
height: 300,
@@ -294,9 +294,8 @@ class AdditionRNNDemo {
294294

295295
const accuracyContainer = document.getElementById('accuracyChart');
296296
tfvis.render.linechart(
297-
{values: accuracyValues, series: ['train', 'validation']},
298297
accuracyContainer,
299-
{
298+
{values: accuracyValues, series: ['train', 'validation']}, {
300299
width: 420,
301300
height: 300,
302301
xLabel: 'epoch',

addition-rnn/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@tensorflow/tfjs": "^1.0.0",
13-
"@tensorflow/tfjs-vis": "^0.4.2"
13+
"@tensorflow/tfjs-vis": "^1.0.3"
1414
},
1515
"scripts": {
1616
"watch": "cross-env NODE_ENV=development parcel index.html --no-hmr --open",

addition-rnn/yarn.lock

+51-49
Original file line numberDiff line numberDiff line change
@@ -671,19 +671,17 @@
671671
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-layers/-/tfjs-layers-1.0.0.tgz#e4344e9221001850eb1615184fa5ca2499f75254"
672672
integrity sha512-+RB5TKM/L7qLn17ic8da/G2qg8EFhRvZIoRA6uCCs5OMUJAUQqhDqBNaoWiy0pYtXDzfZJu3ZOkDbAg2Xv2YOQ==
673673

674-
"@tensorflow/tfjs-vis@^0.4.2":
675-
version "0.4.2"
676-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-vis/-/tfjs-vis-0.4.2.tgz#6d4f81e26dc6c3d8c06345f18e80c2d52c6b551f"
677-
integrity sha512-WMe6Xr3WIeKm4lme2Hz4IRwPnObTOD/eyBUc5vTS2DIXGqK2N9KjzundW3DS2UOFXDicN85bEyHqq6xBaLsNyg==
674+
"@tensorflow/tfjs-vis@^1.0.3":
675+
version "1.0.3"
676+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-vis/-/tfjs-vis-1.0.3.tgz#624bafaa900920e0cf8d00d1047497fd86ac1d91"
677+
integrity sha512-WHyqN7l8M/luTdQNk7VpGrcrEBUSTYNPkK2fHCoxLjhqSnbr5yFEohgHgHnySneW0GUomGjz2C4LjBLlomDTCw==
678678
dependencies:
679679
d3-format "^1.3.0"
680680
d3-selection "^1.3.0"
681681
glamor "^2.20.40"
682682
glamor-tachyons "^1.0.0-alpha.1"
683683
preact "^8.2.9"
684-
vega-embed "3.28.0"
685-
vega-lib "4.4.0"
686-
vega-lite "3.0.0-rc10"
684+
vega-embed "3.30.0"
687685

688686
"@tensorflow/tfjs@^1.0.0":
689687
version "1.0.0"
@@ -695,6 +693,11 @@
695693
"@tensorflow/tfjs-data" "1.0.0"
696694
"@tensorflow/tfjs-layers" "1.0.0"
697695

696+
"@types/clone@^0.1.30":
697+
version "0.1.30"
698+
resolved "https://registry.yarnpkg.com/@types/clone/-/clone-0.1.30.tgz#e7365648c1b42136a59c7d5040637b3b5c83b614"
699+
integrity sha1-5zZWSMG0ITalnH1QQGN7O1yDthQ=
700+
698701
"@types/node-fetch@^2.1.2":
699702
version "2.1.6"
700703
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.1.6.tgz#4326288b49f352a142f03c63526ebce0f4c50877"
@@ -1843,7 +1846,7 @@ clone@^1.0.2:
18431846
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e"
18441847
integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4=
18451848

1846-
clone@^2.1.1:
1849+
clone@^2.1.1, clone@^2.1.2:
18471850
version "2.1.2"
18481851
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
18491852
integrity sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=
@@ -2407,11 +2410,16 @@ d3-scale@^2.1.2:
24072410
d3-time "1"
24082411
d3-time-format "2"
24092412

2410-
d3-selection@^1.3.0, d3-selection@^1.3.2:
2413+
d3-selection@^1.3.0:
24112414
version "1.3.2"
24122415
resolved "https://registry.yarnpkg.com/d3-selection/-/d3-selection-1.3.2.tgz#6e70a9df60801c8af28ac24d10072d82cbfdf652"
24132416
integrity sha512-OoXdv1nZ7h2aKMVg3kaUFbLLK5jXUFAMLD/Tu5JA96mjf8f2a9ZUESGY+C36t8R1WFeWk/e55hy54Ml2I62CRQ==
24142417

2418+
d3-selection@^1.4.0:
2419+
version "1.4.0"
2420+
resolved "https://registry.yarnpkg.com/d3-selection/-/d3-selection-1.4.0.tgz#ab9ac1e664cf967ebf1b479cc07e28ce9908c474"
2421+
integrity sha512-EYVwBxQGEjLCKF2pJ4+yrErskDnz5v403qvAid96cNdCMr8rmCYfY5RGzWz24mdIbxmDf6/4EAH+K9xperD5jg==
2422+
24152423
d3-shape@^1.2.2:
24162424
version "1.2.2"
24172425
resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.2.2.tgz#f9dba3777a5825f9a8ce8bc928da08c17679e9a7"
@@ -2894,6 +2902,11 @@ fast-glob@^2.2.2:
28942902
merge2 "^1.2.3"
28952903
micromatch "^3.1.10"
28962904

2905+
fast-json-stable-stringify@^2.0.0:
2906+
version "2.0.0"
2907+
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
2908+
integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I=
2909+
28972910
fast-levenshtein@~2.0.4:
28982911
version "2.0.6"
28992912
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
@@ -3741,18 +3754,16 @@ json-parse-better-errors@^1.0.1:
37413754
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
37423755
integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==
37433756

3744-
json-stable-stringify@^1.0.1:
3745-
version "1.0.1"
3746-
resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af"
3747-
integrity sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=
3748-
dependencies:
3749-
jsonify "~0.0.0"
3750-
37513757
json-stringify-pretty-compact@^1.2.0:
37523758
version "1.2.0"
37533759
resolved "https://registry.yarnpkg.com/json-stringify-pretty-compact/-/json-stringify-pretty-compact-1.2.0.tgz#0bc316b5e6831c07041fc35612487fb4e9ab98b8"
37543760
integrity sha512-/11Pj1OyX814QMKO7K8l85SHPTr/KsFxHp8GE2zVa0BtJgGimDjXHfM3FhC7keQdWDea7+nXf+f1de7ATZcZkQ==
37553761

3762+
json-stringify-pretty-compact@^2.0.0:
3763+
version "2.0.0"
3764+
resolved "https://registry.yarnpkg.com/json-stringify-pretty-compact/-/json-stringify-pretty-compact-2.0.0.tgz#e77c419f52ff00c45a31f07f4c820c2433143885"
3765+
integrity sha512-WRitRfs6BGq4q8gTgOy4ek7iPFXjbra0H3PmDLKm2xnZ+Gh1HUhiKGgCZkSPNULlP7mvfu6FV/mOLhCarspADQ==
3766+
37563767
json5@^0.5.1:
37573768
version "0.5.1"
37583769
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
@@ -3779,11 +3790,6 @@ jsonfile@^4.0.0:
37793790
optionalDependencies:
37803791
graceful-fs "^4.1.6"
37813792

3782-
jsonify@~0.0.0:
3783-
version "0.0.0"
3784-
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
3785-
integrity sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=
3786-
37873793
kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
37883794
version "3.2.2"
37893795
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
@@ -6392,19 +6398,19 @@ vega-dataflow@^4.0.0, vega-dataflow@^4.0.4, vega-dataflow@^4.1.0:
63926398
vega-loader "^3.1.0"
63936399
vega-util "^1.7.0"
63946400

6395-
vega-embed@3.28.0:
6396-
version "3.28.0"
6397-
resolved "https://registry.yarnpkg.com/vega-embed/-/vega-embed-3.28.0.tgz#f00373ddf3d83c501de3b8a0396951a32648f175"
6398-
integrity sha512-qIHNKPk7rwuID8/dHthXPMQrEhA6AjLiiVqD3Ols8Ff80GLOgXggjxwwyAI8DrKhOVNFbQwsTgx5E8cH0X5y6w==
6401+
vega-embed@3.30.0:
6402+
version "3.30.0"
6403+
resolved "https://registry.yarnpkg.com/vega-embed/-/vega-embed-3.30.0.tgz#2ed625cc7d0c7a0aa54160f35a7b29076130c168"
6404+
integrity sha512-+90hd4iqu6fpfgOAFZ/9QZVxoGKX3lFghm70XlkKeaUjVAxzM2mW4jiQ5VTqY1+5dhBgmjbWMrrC2Uh3n0jzLg==
63996405
dependencies:
6400-
d3-selection "^1.3.2"
6401-
json-stringify-pretty-compact "^1.2.0"
6406+
d3-selection "^1.4.0"
6407+
json-stringify-pretty-compact "^2.0.0"
64026408
semver "^5.6.0"
64036409
vega-lib "^4.4.0"
6404-
vega-lite "^3.0.0-rc10 || ^2.6.0"
6410+
vega-lite "3.0.0-rc12 || ^2.6.0"
64056411
vega-schema-url-parser "^1.1.0"
64066412
vega-themes "^2.2.0"
6407-
vega-tooltip "^0.15.0"
6413+
vega-tooltip "^0.16.0"
64086414

64096415
vega-encode@^3.2.2:
64106416
version "3.2.2"
@@ -6461,7 +6467,7 @@ vega-hierarchy@^3.1.0:
64616467
vega-dataflow "^4.0.4"
64626468
vega-util "^1.7.0"
64636469

6464-
vega-lib@4.4.0, vega-lib@^4.4.0:
6470+
vega-lib@^4.4.0:
64656471
version "4.4.0"
64666472
resolved "https://registry.yarnpkg.com/vega-lib/-/vega-lib-4.4.0.tgz#37d99514c5496a0ce001033bdacb504361ef6880"
64676473
integrity sha512-bfOsO5wks+ctnJ94fIPWH/B0qocdFs4WZ8teIgjF7m5XE+EVln+1nq9Z+sV7wdw7vftzGg0GAx9UH/kJxyopKg==
@@ -6489,18 +6495,21 @@ [email protected], vega-lib@^4.4.0:
64896495
vega-voronoi "^3.0.0"
64906496
vega-wordcloud "^3.0.0"
64916497

6492-
[email protected], "vega-lite@^3.0.0-rc10 || ^2.6.0":
6493-
version "3.0.0-rc10"
6494-
resolved "https://registry.yarnpkg.com/vega-lite/-/vega-lite-3.0.0-rc10.tgz#06738975a23bb4e61cfaf5a64779453a5cdf5a3e"
6495-
integrity sha512-xgoOXmVdd2j89D6i44JHjozUy7Z4Mw9bcqFySzm77JDUV0BWLrnM61QmaS8ZwAZQbMcmdCTCJ//HgClH2gFZoQ==
6498+
"[email protected]rc12 || ^2.6.0":
6499+
version "3.0.0-rc12"
6500+
resolved "https://registry.yarnpkg.com/vega-lite/-/vega-lite-3.0.0-rc12.tgz#48a1a8dc6b499ed3efdcff8b9807e6df4214de70"
6501+
integrity sha512-/J7pyYFzL6rod+fBRZ9k6EQBMr7VXRmhQ/DqKPm2wGgtzqxDorBrvwZ0sqi2zWZ1o1vHIehbfl+/JMotuIoEeg==
64966502
dependencies:
6503+
"@types/clone" "^0.1.30"
6504+
clone "^2.1.2"
64976505
fast-deep-equal "^2.0.1"
6498-
json-stable-stringify "^1.0.1"
6506+
fast-json-stable-stringify "^2.0.0"
64996507
json-stringify-pretty-compact "^1.2.0"
65006508
tslib "^1.9.3"
65016509
vega-event-selector "^2.0.0"
6502-
vega-typings "0.3.51"
6503-
vega-util "^1.7.0"
6510+
vega-expression "^2.4.0"
6511+
vega-typings "0.3.53"
6512+
vega-util "^1.7.1"
65046513
yargs "^12.0.5"
65056514

65066515
vega-loader@^3.0.1, vega-loader@^3.1.0:
@@ -6589,10 +6598,10 @@ vega-themes@^2.2.0:
65896598
dependencies:
65906599
vega-typings "^0.3.51"
65916600

6592-
vega-tooltip@^0.15.0:
6593-
version "0.15.0"
6594-
resolved "https://registry.yarnpkg.com/vega-tooltip/-/vega-tooltip-0.15.0.tgz#2606a95b46f0aa6a70f03d18f919dc13696c4d44"
6595-
integrity sha512-xfac+5I7YR1ZKfip2i9xlEHuNrl5YpQnZAmTc9dzQcnkoo5MmGVIhH01tEGOr8keVC9UbYU1AREezwv8Mpajhw==
6601+
vega-tooltip@^0.16.0:
6602+
version "0.16.0"
6603+
resolved "https://registry.yarnpkg.com/vega-tooltip/-/vega-tooltip-0.16.0.tgz#fc9badb96aed437b8225d0a7216ec6d1e768ac6f"
6604+
integrity sha512-A3hZ3B06n8anAp5ReOKmPeGlZaE2kVT0rN0IGLV8jWR54mNUKH/H9TacsyvLA9gq9OO0NrbpQ4NyfxU3uS8EYg==
65966605
dependencies:
65976606
vega-util "^1.7.1"
65986607

@@ -6606,20 +6615,13 @@ vega-transforms@^2.3.1:
66066615
vega-statistics "^1.2.3"
66076616
vega-util "^1.7.0"
66086617

6609-
vega-typings@*, vega-typings@^0.3.51:
6618+
vega-typings@*, vega-typings@0.3.53, vega-typings@^0.3.51:
66106619
version "0.3.53"
66116620
resolved "https://registry.yarnpkg.com/vega-typings/-/vega-typings-0.3.53.tgz#a70b9730ebe1e4c557019ccccc5fd98035b0aab0"
66126621
integrity sha512-XQRd66eL62ll6tHENQIJHtdwXemqXoB4KnVVbGUwGJIHjQkHHluCbkoWVRvPYuRd+OLM1RXVc+EBxA015hJ1SQ==
66136622
dependencies:
66146623
vega-util "^1.7.0"
66156624

6616-
6617-
version "0.3.51"
6618-
resolved "https://registry.yarnpkg.com/vega-typings/-/vega-typings-0.3.51.tgz#1e7a84ae3af4fcc0784b80d50a3e1df432b18141"
6619-
integrity sha512-8UJnlGIZLDYzlLgMJVHO8Yb8yU7pYeNGnW8J7nxgyXqurowovmPM9fV+V49vzbQnZl4/Qq14wGqm9yM7iqZl8g==
6620-
dependencies:
6621-
vega-util "^1.7.0"
6622-
66236625
vega-util@^1.7.0, vega-util@^1.7.1:
66246626
version "1.7.1"
66256627
resolved "https://registry.yarnpkg.com/vega-util/-/vega-util-1.7.1.tgz#0b95bbe6058895c332596c215247507caa68ab61"

boston-housing/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@tensorflow/tfjs": "^1.0.0",
13-
"@tensorflow/tfjs-vis": "^0.4.2",
13+
"@tensorflow/tfjs-vis": "^1.0.3",
1414
"papaparse": "^4.5.0"
1515
},
1616
"scripts": {

0 commit comments

Comments
 (0)