Created
February 8, 2021 18:59
-
-
Save sharanry/e2c202bb5fecf87959d7a7f8a36dd5d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"using DrWatson\n", | |
"@quickactivate \"ParamRegNN\"\n", | |
"using Plots, CSV, DataFrames, StatsPlots\n", | |
"using PlotlyJS\n", | |
"# using SimplePlots\n", | |
"using Interact" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"# using Plots\n", | |
"# x = y = 0:0.1:30\n", | |
"# freqs = OrderedDict(zip([\"pi/4\", \"π/2\", \"3π/4\", \"π\"], [π/4, π/2, 3π/4, π]))\n", | |
"# mp = @manipulate for freq1 in freqs, freq2 in slider(0.01:0.1:4π; label=\"freq2\")\n", | |
"# y = @. sin(freq1*x) * sin(freq2*x)\n", | |
"# Plots.plot(x, y)\n", | |
"# end" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"Dict{Float64,Dict{Any,DataFrame}} with 2 entries:\n", | |
" 0.5 => Dict{Any,DataFrame}(0.0001=>\u001b[1m100×8 DataFrame\u001b[0m…\n", | |
" 0.05 => Dict{Any,DataFrame}(0.0001=>\u001b[1m100×8 DataFrame\u001b[0m…" | |
] | |
}, | |
"execution_count": 6, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"results = Dict(\n", | |
" 0.5=>Dict(\n", | |
" \"map\"=> CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout_glorot_map\", \"batchsize=256_epochs=100_mcmc_steps=1_prior_var=0.5_η=0.csv\"), DataFrame),\n", | |
" 0.1=> CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.1_mcmc_steps=1_prior_var=0.5_η=0.csv\"), DataFrame),\n", | |
" 0.01=> CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.01_mcmc_steps=1_prior_var=0.5_η=0.csv\"), DataFrame),\n", | |
" 0.001=> CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.001_mcmc_steps=1_prior_var=0.5_η=0.csv\"), DataFrame),\n", | |
" 0.0001=> CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.0001_mcmc_steps=1_prior_var=0.5_η=0.csv\"), DataFrame),\n", | |
" ),\n", | |
" 0.05=>Dict(\n", | |
" \"dropout\"=>CSV.read(datadir(\"sims\", \"baselines\", \"dropout_batchsize=256_epochs=100_initial_ϵ=0.01_mcmc_steps=1_prior_var=0.05_η=0.csv\"), DataFrame),\n", | |
" \"vanilla\"=>CSV.read(datadir(\"sims\", \"baselines\", \"vanilla_batchsize=256_epochs=100_initial_ϵ=0.01_mcmc_steps=1_prior_var=0.05_η=0.csv\"), DataFrame),\n", | |
" \"map\"=>CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout_glorot_map\", \"batchsize=256_epochs=100_mcmc_steps=1_prior_var=0.05_η=0.csv\"), DataFrame),\n", | |
" 0.1=>CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.1_mcmc_steps=1_prior_var=0.05_η=0.csv\"), DataFrame),\n", | |
" 0.01=>CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.01_mcmc_steps=1_prior_var=0.05_η=0.csv\"), DataFrame),\n", | |
" 0.001=>CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.001_mcmc_steps=1_prior_var=0.05_η=0.csv\"), DataFrame),\n", | |
" 0.0001=>CSV.read(datadir(\"sims\", \"train_attempt-mala-dense_prob_dropout\", \"batchsize=256_epochs=100_initial_ϵ=0.0001_mcmc_steps=1_prior_var=0.05_η=0.csv\"), DataFrame),\n", | |
" ),\n", | |
")" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 45, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"application/vnd.webio.node+json": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
"ϵ" | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "label" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact ", | |
"style": { | |
"padding": "5px 10px 0px 10px" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-left" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "input" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}", | |
"orient": "horizontal", | |
"type": "range" | |
}, | |
"className": "slider slider is-fullwidth", | |
"max": 3, | |
"min": 1, | |
"step": 1, | |
"style": {} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-center" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "p" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "text: formatted_val" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-right" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row interact-widget" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"handlers": { | |
"changes": [ | |
"(function (val){return (val!=this.model[\"changes\"]()) ? (this.valueFromJulia[\"changes\"]=true, this.model[\"changes\"](val)) : undefined})" | |
], | |
"index": [ | |
"(function (val){return (val!=this.model[\"index\"]()) ? (this.valueFromJulia[\"index\"]=true, this.model[\"index\"](val)) : undefined})" | |
] | |
}, | |
"id": "13005806167829597626", | |
"imports": { | |
"data": [ | |
{ | |
"name": "knockout", | |
"type": "js", | |
"url": "/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js" | |
}, | |
{ | |
"name": "knockout_punches", | |
"type": "js", | |
"url": "/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js" | |
}, | |
{ | |
"name": null, | |
"type": "js", | |
"url": "/assetserver/2182d55e67ae0c357235a5e27282375a80af142a-all.js" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css" | |
} | |
], | |
"type": "async_block" | |
}, | |
"mount_callbacks": [ | |
"function () {\n var handler = (function (ko, koPunches) {\n ko.punches.enableAll();\n ko.bindingHandlers.numericValue = {\n init: function(element, valueAccessor, allBindings, data, context) {\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\n stringified.subscribe(function(value) {\n var val = parseFloat(value);\n if (!isNaN(val)) {\n valueAccessor()(val);\n }\n });\n valueAccessor().subscribe(function(value) {\n var str = JSON.stringify(value);\n if ((str == \"0\") && ([\"-0\", \"-0.\"].indexOf(stringified()) >= 0))\n return;\n if ([\"null\", \"\"].indexOf(str) >= 0)\n return;\n stringified(str);\n });\n ko.applyBindingsToNode(\n element,\n {\n value: stringified,\n valueUpdate: allBindings.get('valueUpdate'),\n },\n context,\n );\n }\n };\n var json_data = {\"formatted_vals\":[\"0.0001\",\"0.001\",\"0.01\"],\"changes\":WebIO.getval({\"name\":\"changes\",\"scope\":\"13005806167829597626\",\"id\":\"3471770704551951765\",\"type\":\"observable\"}),\"index\":WebIO.getval({\"name\":\"index\",\"scope\":\"13005806167829597626\",\"id\":\"888226069532377793\",\"type\":\"observable\"})};\n var self = this;\n function AppViewModel() {\n for (var key in json_data) {\n var el = json_data[key];\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\n }\n \n [this[\"formatted_val\"]=ko.computed( function(){\n return this.formatted_vals()[parseInt(this.index())-(1)];\n }\n,this)]\n [this[\"changes\"].subscribe((function (val){!(this.valueFromJulia[\"changes\"]) ? (WebIO.setval({\"name\":\"changes\",\"scope\":\"13005806167829597626\",\"id\":\"3471770704551951765\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"changes\"]=false}),self),this[\"index\"].subscribe((function (val){!(this.valueFromJulia[\"index\"]) ? (WebIO.setval({\"name\":\"index\",\"scope\":\"13005806167829597626\",\"id\":\"888226069532377793\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"index\"]=false}),self)]\n \n }\n self.model = new AppViewModel();\n self.valueFromJulia = {};\n for (var key in json_data) {\n self.valueFromJulia[key] = false;\n }\n ko.applyBindings(self.model, self.dom);\n}\n);\n (WebIO.importBlock({\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"}],\"type\":\"async_block\"})).then((imports) => handler.apply(this, imports));\n}\n" | |
], | |
"observables": { | |
"changes": { | |
"id": "3471770704551951765", | |
"sync": false, | |
"value": 0 | |
}, | |
"index": { | |
"id": "888226069532377793", | |
"sync": true, | |
"value": 2 | |
} | |
}, | |
"systemjs_options": null | |
}, | |
"nodeType": "Scope", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "field interact-widget" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
"σ" | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "label" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact ", | |
"style": { | |
"padding": "5px 10px 0px 10px" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-left" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "input" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}", | |
"orient": "horizontal", | |
"type": "range" | |
}, | |
"className": "slider slider is-fullwidth", | |
"max": 2, | |
"min": 1, | |
"step": 1, | |
"style": {} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-center" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "p" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "text: formatted_val" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-right" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row interact-widget" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"handlers": { | |
"changes": [ | |
"(function (val){return (val!=this.model[\"changes\"]()) ? (this.valueFromJulia[\"changes\"]=true, this.model[\"changes\"](val)) : undefined})" | |
], | |
"index": [ | |
"(function (val){return (val!=this.model[\"index\"]()) ? (this.valueFromJulia[\"index\"]=true, this.model[\"index\"](val)) : undefined})" | |
] | |
}, | |
"id": "5606979261643614894", | |
"imports": { | |
"data": [ | |
{ | |
"name": "knockout", | |
"type": "js", | |
"url": "/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js" | |
}, | |
{ | |
"name": "knockout_punches", | |
"type": "js", | |
"url": "/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js" | |
}, | |
{ | |
"name": null, | |
"type": "js", | |
"url": "/assetserver/2182d55e67ae0c357235a5e27282375a80af142a-all.js" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css" | |
} | |
], | |
"type": "async_block" | |
}, | |
"mount_callbacks": [ | |
"function () {\n var handler = (function (ko, koPunches) {\n ko.punches.enableAll();\n ko.bindingHandlers.numericValue = {\n init: function(element, valueAccessor, allBindings, data, context) {\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\n stringified.subscribe(function(value) {\n var val = parseFloat(value);\n if (!isNaN(val)) {\n valueAccessor()(val);\n }\n });\n valueAccessor().subscribe(function(value) {\n var str = JSON.stringify(value);\n if ((str == \"0\") && ([\"-0\", \"-0.\"].indexOf(stringified()) >= 0))\n return;\n if ([\"null\", \"\"].indexOf(str) >= 0)\n return;\n stringified(str);\n });\n ko.applyBindingsToNode(\n element,\n {\n value: stringified,\n valueUpdate: allBindings.get('valueUpdate'),\n },\n context,\n );\n }\n };\n var json_data = {\"formatted_vals\":[\"0.05\",\"0.5\"],\"changes\":WebIO.getval({\"name\":\"changes\",\"scope\":\"5606979261643614894\",\"id\":\"1265085318451203900\",\"type\":\"observable\"}),\"index\":WebIO.getval({\"name\":\"index\",\"scope\":\"5606979261643614894\",\"id\":\"11636833043439181711\",\"type\":\"observable\"})};\n var self = this;\n function AppViewModel() {\n for (var key in json_data) {\n var el = json_data[key];\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\n }\n \n [this[\"formatted_val\"]=ko.computed( function(){\n return this.formatted_vals()[parseInt(this.index())-(1)];\n }\n,this)]\n [this[\"changes\"].subscribe((function (val){!(this.valueFromJulia[\"changes\"]) ? (WebIO.setval({\"name\":\"changes\",\"scope\":\"5606979261643614894\",\"id\":\"1265085318451203900\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"changes\"]=false}),self),this[\"index\"].subscribe((function (val){!(this.valueFromJulia[\"index\"]) ? (WebIO.setval({\"name\":\"index\",\"scope\":\"5606979261643614894\",\"id\":\"11636833043439181711\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"index\"]=false}),self)]\n \n }\n self.model = new AppViewModel();\n self.valueFromJulia = {};\n for (var key in json_data) {\n self.valueFromJulia[key] = false;\n }\n ko.applyBindings(self.model, self.dom);\n}\n);\n (WebIO.importBlock({\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"}],\"type\":\"async_block\"})).then((imports) => handler.apply(this, imports));\n}\n" | |
], | |
"observables": { | |
"changes": { | |
"id": "1265085318451203900", | |
"sync": false, | |
"value": 0 | |
}, | |
"index": { | |
"id": "11636833043439181711", | |
"sync": true, | |
"value": 1 | |
} | |
}, | |
"systemjs_options": null | |
}, | |
"nodeType": "Scope", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "field interact-widget" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"style": { | |
"display": "flex", | |
"flex-direction": "row" | |
} | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "webio-observable", | |
"setInnerHtml": "<div\n class=\"webio-mountpoint\"\n data-webio-mountpoint=\"9917793840355102699\"\n>\n <script>\n if (window.require && require.defined && require.defined(\"nbextensions/webio-jupyter-notebook\")) {\n console.log(\"Jupyter WebIO extension detected, not mounting.\");\n } else if (window.WebIO) {\n WebIO.mount(\n document.querySelector('[data-webio-mountpoint=\"9917793840355102699\"]'),\n {\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[{\"name\":\"Plotly\",\"type\":\"js\",\"url\":\"\\/assetserver\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"\\/assetserver\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\"}],\"type\":\"async_block\"},\"id\":\"5297196054402219731\",\"handlers\":{\"_toImage\":[\"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\\\"name\\\":\\\"image\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"11394585473943300020\\\",\\\"type\\\":\\\"observable\\\"},data)}))})\"],\"__get_gd_contents\":[\"(function (prop){prop==\\\"data\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"10447163033576509159\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.data)) : undefined; return prop==\\\"layout\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"10447163033576509159\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.layout)) : undefined})\"],\"_downloadImage\":[\"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})\"],\"_commands\":[\"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})\"]},\"systemjs_options\":null,\"mount_callbacks\":[\"function () {\\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\\\"#plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\\\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\\\"100%\\\", gd.style.height=\\\"100vh\\\", gd.style.marginLeft=\\\"0%\\\", gd.style.marginTop=\\\"0vh\\\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\\\"y\\\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"test\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\\\"y\\\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"train\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\\\"margin\\\":{\\\"l\\\":50,\\\"b\\\":50,\\\"r\\\":50,\\\"t\\\":60}},{}); gd.on(\\\"plotly_hover\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"hover\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"1801606762083986358\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_unhover\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"1801606762083986358\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_selected\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"selected\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7185035130503739725\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_deselect\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7185035130503739725\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_relayout\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"relayout\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"relayout\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7361212773512285513\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); return gd.on(\\\"plotly_click\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"click\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"click\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"8911968687776290668\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined}))}));\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"Plotly\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\"},{\\\"name\\\":null,\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\"],\"observables\":{\"_toImage\":{\"sync\":false,\"id\":\"8393621645212535049\",\"value\":{}},\"hover\":{\"sync\":false,\"id\":\"1801606762083986358\",\"value\":{}},\"selected\":{\"sync\":false,\"id\":\"7185035130503739725\",\"value\":{}},\"__gd_contents\":{\"sync\":false,\"id\":\"10447163033576509159\",\"value\":{}},\"click\":{\"sync\":false,\"id\":\"8911968687776290668\",\"value\":{}},\"image\":{\"sync\":true,\"id\":\"11394585473943300020\",\"value\":\"\"},\"__get_gd_contents\":{\"sync\":false,\"id\":\"4433019374575458594\",\"value\":\"\"},\"_downloadImage\":{\"sync\":false,\"id\":\"9991633768248962807\",\"value\":{}},\"relayout\":{\"sync\":false,\"id\":\"7361212773512285513\",\"value\":{}},\"_commands\":{\"sync\":false,\"id\":\"125095274781401209\",\"value\":[]}}},\"children\":[{\"props\":{\"id\":\"plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[]}]},\n window,\n );\n } else {\n document\n .querySelector('[data-webio-mountpoint=\"9917793840355102699\"]')\n .innerHTML = (\n '<div style=\"padding: 1em; background-color: #f8d6da; border: 1px solid #f5c6cb\">' +\n '<p><strong>WebIO not detected.</strong></p>' +\n '<p>Please read ' +\n '<a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">the troubleshooting guide</a> ' +\n 'for more information on how to resolve this issue.</p>' +\n '<p><a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/</a></p>' +\n '</div>'\n );\n }\n </script>\n</div>\n" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"handlers": { | |
"obs-output": [ | |
"function (value, scope) {\n scope.setInnerHTML(value);\n}\n" | |
] | |
}, | |
"id": "8125363373663572073", | |
"imports": { | |
"data": [], | |
"type": "async_block" | |
}, | |
"mount_callbacks": [], | |
"observables": { | |
"obs-output": { | |
"id": "576487500901762106", | |
"sync": false, | |
"value": "<div\n class=\"webio-mountpoint\"\n data-webio-mountpoint=\"9917793840355102699\"\n>\n <script>\n if (window.require && require.defined && require.defined(\"nbextensions/webio-jupyter-notebook\")) {\n console.log(\"Jupyter WebIO extension detected, not mounting.\");\n } else if (window.WebIO) {\n WebIO.mount(\n document.querySelector('[data-webio-mountpoint=\"9917793840355102699\"]'),\n {\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[{\"name\":\"Plotly\",\"type\":\"js\",\"url\":\"\\/assetserver\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"\\/assetserver\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\"}],\"type\":\"async_block\"},\"id\":\"5297196054402219731\",\"handlers\":{\"_toImage\":[\"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\\\"name\\\":\\\"image\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"11394585473943300020\\\",\\\"type\\\":\\\"observable\\\"},data)}))})\"],\"__get_gd_contents\":[\"(function (prop){prop==\\\"data\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"10447163033576509159\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.data)) : undefined; return prop==\\\"layout\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"10447163033576509159\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.layout)) : undefined})\"],\"_downloadImage\":[\"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})\"],\"_commands\":[\"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})\"]},\"systemjs_options\":null,\"mount_callbacks\":[\"function () {\\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\\\"#plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\\\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\\\"100%\\\", gd.style.height=\\\"100vh\\\", gd.style.marginLeft=\\\"0%\\\", gd.style.marginTop=\\\"0vh\\\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\\\"y\\\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"test\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\\\"y\\\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"train\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\\\"margin\\\":{\\\"l\\\":50,\\\"b\\\":50,\\\"r\\\":50,\\\"t\\\":60}},{}); gd.on(\\\"plotly_hover\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"hover\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"1801606762083986358\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_unhover\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"1801606762083986358\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_selected\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"selected\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7185035130503739725\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_deselect\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7185035130503739725\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_relayout\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"relayout\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"relayout\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7361212773512285513\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); return gd.on(\\\"plotly_click\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"click\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"click\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"8911968687776290668\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined}))}));\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"Plotly\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\"},{\\\"name\\\":null,\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\"],\"observables\":{\"_toImage\":{\"sync\":false,\"id\":\"8393621645212535049\",\"value\":{}},\"hover\":{\"sync\":false,\"id\":\"1801606762083986358\",\"value\":{}},\"selected\":{\"sync\":false,\"id\":\"7185035130503739725\",\"value\":{}},\"__gd_contents\":{\"sync\":false,\"id\":\"10447163033576509159\",\"value\":{}},\"click\":{\"sync\":false,\"id\":\"8911968687776290668\",\"value\":{}},\"image\":{\"sync\":true,\"id\":\"11394585473943300020\",\"value\":\"\"},\"__get_gd_contents\":{\"sync\":false,\"id\":\"4433019374575458594\",\"value\":\"\"},\"_downloadImage\":{\"sync\":false,\"id\":\"9991633768248962807\",\"value\":{}},\"relayout\":{\"sync\":false,\"id\":\"7361212773512285513\",\"value\":{}},\"_commands\":{\"sync\":false,\"id\":\"125095274781401209\",\"value\":[]}}},\"children\":[{\"props\":{\"id\":\"plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[]}]},\n window,\n );\n } else {\n document\n .querySelector('[data-webio-mountpoint=\"9917793840355102699\"]')\n .innerHTML = (\n '<div style=\"padding: 1em; background-color: #f8d6da; border: 1px solid #f5c6cb\">' +\n '<p><strong>WebIO not detected.</strong></p>' +\n '<p>Please read ' +\n '<a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">the troubleshooting guide</a> ' +\n 'for more information on how to resolve this issue.</p>' +\n '<p><a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/</a></p>' +\n '</div>'\n );\n }\n </script>\n</div>\n" | |
} | |
}, | |
"systemjs_options": null | |
}, | |
"nodeType": "Scope", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"style": { | |
"display": "flex", | |
"flex-direction": "column" | |
} | |
}, | |
"type": "node" | |
}, | |
"text/html": [ | |
"<div\n", | |
" class=\"webio-mountpoint\"\n", | |
" data-webio-mountpoint=\"13357267915588967354\"\n", | |
">\n", | |
" <script>\n", | |
" if (window.require && require.defined && require.defined(\"nbextensions/webio-jupyter-notebook\")) {\n", | |
" console.log(\"Jupyter WebIO extension detected, not mounting.\");\n", | |
" } else if (window.WebIO) {\n", | |
" WebIO.mount(\n", | |
" document.querySelector('[data-webio-mountpoint=\"13357267915588967354\"]'),\n", | |
" {\"props\":{\"style\":{\"display\":\"flex\",\"flex-direction\":\"column\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"style\":{\"display\":\"flex\",\"flex-direction\":\"row\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"field interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"\\/assetserver\\/2182d55e67ae0c357235a5e27282375a80af142a-all.js\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css\"}],\"type\":\"async_block\"},\"id\":\"13005806167829597626\",\"handlers\":{\"changes\":[\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\"],\"index\":[\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\"]},\"systemjs_options\":null,\"mount_callbacks\":[\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.0001\\\",\\\"0.001\\\",\\\"0.01\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"3471770704551951765\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"888226069532377793\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"3471770704551951765\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"888226069532377793\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\"],\"observables\":{\"changes\":{\"sync\":false,\"id\":\"3471770704551951765\",\"value\":0},\"index\":{\"sync\":true,\"id\":\"888226069532377793\",\"value\":2}}},\"children\":[{\"props\":{\"className\":\"interact-flex-row interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact-flex-row-left\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact \",\"style\":{\"padding\":\"5px 10px 0px 10px\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"label\"},\"children\":[\"ϵ\"]}]},{\"props\":{\"className\":\"interact-flex-row-center\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"max\":3,\"min\":1,\"attributes\":{\"type\":\"range\",\"data-bind\":\"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\":\"horizontal\"},\"step\":1,\"className\":\"slider slider is-fullwidth\",\"style\":{}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"input\"},\"children\":[]}]},{\"props\":{\"className\":\"interact-flex-row-right\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"attributes\":{\"data-bind\":\"text: formatted_val\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"p\"},\"children\":[]}]}]}]}]},{\"props\":{\"className\":\"field interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"\\/assetserver\\/2182d55e67ae0c357235a5e27282375a80af142a-all.js\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css\"}],\"type\":\"async_block\"},\"id\":\"5606979261643614894\",\"handlers\":{\"changes\":[\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\"],\"index\":[\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\"]},\"systemjs_options\":null,\"mount_callbacks\":[\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.05\\\",\\\"0.5\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"1265085318451203900\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"11636833043439181711\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"1265085318451203900\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"11636833043439181711\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\"],\"observables\":{\"changes\":{\"sync\":false,\"id\":\"1265085318451203900\",\"value\":0},\"index\":{\"sync\":true,\"id\":\"11636833043439181711\",\"value\":1}}},\"children\":[{\"props\":{\"className\":\"interact-flex-row interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact-flex-row-left\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact \",\"style\":{\"padding\":\"5px 10px 0px 10px\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"label\"},\"children\":[\"σ\"]}]},{\"props\":{\"className\":\"interact-flex-row-center\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"max\":2,\"min\":1,\"attributes\":{\"type\":\"range\",\"data-bind\":\"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\":\"horizontal\"},\"step\":1,\"className\":\"slider slider is-fullwidth\",\"style\":{}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"input\"},\"children\":[]}]},{\"props\":{\"className\":\"interact-flex-row-right\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"attributes\":{\"data-bind\":\"text: formatted_val\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"p\"},\"children\":[]}]}]}]}]}]},{\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[],\"type\":\"async_block\"},\"id\":\"5889733820902688546\",\"handlers\":{\"obs-output\":[\"function (value, scope) {\\n scope.setInnerHTML(value);\\n}\\n\"]},\"systemjs_options\":null,\"mount_callbacks\":[],\"observables\":{\"obs-output\":{\"sync\":false,\"id\":\"9262426300472791443\",\"value\":\"<div\\n class=\\\"webio-mountpoint\\\"\\n data-webio-mountpoint=\\\"4084114492660062417\\\"\\n>\\n <script>\\n if (window.require && require.defined && require.defined(\\\"nbextensions\\/webio-jupyter-notebook\\\")) {\\n console.log(\\\"Jupyter WebIO extension detected, not mounting.\\\");\\n } else if (window.WebIO) {\\n WebIO.mount(\\n document.querySelector('[data-webio-mountpoint=\\\"4084114492660062417\\\"]'),\\n {\\\"props\\\":{},\\\"nodeType\\\":\\\"Scope\\\",\\\"type\\\":\\\"node\\\",\\\"instanceArgs\\\":{\\\"imports\\\":{\\\"data\\\":[{\\\"name\\\":\\\"Plotly\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\\\\\/assetserver\\\\\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\"},{\\\"name\\\":null,\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\\\\\/assetserver\\\\\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\"}],\\\"type\\\":\\\"async_block\\\"},\\\"id\\\":\\\"5297196054402219731\\\",\\\"handlers\\\":{\\\"_toImage\\\":[\\\"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"image\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"11394585473943300020\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},data)}))})\\\"],\\\"__get_gd_contents\\\":[\\\"(function (prop){prop==\\\\\\\"data\\\\\\\" ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"__gd_contents\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"10447163033576509159\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},this.plotElem.data)) : undefined; return prop==\\\\\\\"layout\\\\\\\" ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"__gd_contents\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"10447163033576509159\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},this.plotElem.layout)) : undefined})\\\"],\\\"_downloadImage\\\":[\\\"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})\\\"],\\\"_commands\\\":[\\\"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})\\\"]},\\\"systemjs_options\\\":null,\\\"mount_callbacks\\\":[\\\"function () {\\\\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\\\\\\\"#plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\\\\\\\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\\\\\\\"100%\\\\\\\", gd.style.height=\\\\\\\"100vh\\\\\\\", gd.style.marginLeft=\\\\\\\"0%\\\\\\\", gd.style.marginTop=\\\\\\\"0vh\\\\\\\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\\\\\\\"y\\\\\\\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\\\\\\\"type\\\\\\\":\\\\\\\"scatter\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"test\\\\\\\",\\\\\\\"linewidth\\\\\\\":0.5,\\\\\\\"x\\\\\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\\\\\\\"y\\\\\\\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\\\\\\\"type\\\\\\\":\\\\\\\"scatter\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"train\\\\\\\",\\\\\\\"linewidth\\\\\\\":0.5,\\\\\\\"x\\\\\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\\\\\\\"margin\\\\\\\":{\\\\\\\"l\\\\\\\":50,\\\\\\\"b\\\\\\\":50,\\\\\\\"r\\\\\\\":50,\\\\\\\"t\\\\\\\":60}},{}); gd.on(\\\\\\\"plotly_hover\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"hover\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"hover\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"1801606762083986358\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined})); gd.on(\\\\\\\"plotly_unhover\\\\\\\",(function (){return WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"hover\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"1801606762083986358\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},{})})); gd.on(\\\\\\\"plotly_selected\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"selected\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"selected\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"7185035130503739725\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined})); gd.on(\\\\\\\"plotly_deselect\\\\\\\",(function (){return WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"selected\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"7185035130503739725\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},{})})); gd.on(\\\\\\\"plotly_relayout\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"relayout\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"relayout\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"7361212773512285513\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined})); return gd.on(\\\\\\\"plotly_click\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"click\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"click\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"8911968687776290668\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined}))}));\\\\n (WebIO.importBlock({\\\\\\\"data\\\\\\\":[{\\\\\\\"name\\\\\\\":\\\\\\\"Plotly\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"js\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"\\\\\\/assetserver\\\\\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\\\\\"},{\\\\\\\"name\\\\\\\":null,\\\\\\\"type\\\\\\\":\\\\\\\"js\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"\\\\\\/assetserver\\\\\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\\\\\"}],\\\\\\\"type\\\\\\\":\\\\\\\"async_block\\\\\\\"})).then((imports) => handler.apply(this, imports));\\\\n}\\\\n\\\"],\\\"observables\\\":{\\\"_toImage\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"8393621645212535049\\\",\\\"value\\\":{}},\\\"hover\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"1801606762083986358\\\",\\\"value\\\":{}},\\\"selected\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"7185035130503739725\\\",\\\"value\\\":{}},\\\"__gd_contents\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"10447163033576509159\\\",\\\"value\\\":{}},\\\"click\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"8911968687776290668\\\",\\\"value\\\":{}},\\\"image\\\":{\\\"sync\\\":true,\\\"id\\\":\\\"11394585473943300020\\\",\\\"value\\\":\\\"\\\"},\\\"__get_gd_contents\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"4433019374575458594\\\",\\\"value\\\":\\\"\\\"},\\\"_downloadImage\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"9991633768248962807\\\",\\\"value\\\":{}},\\\"relayout\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"7361212773512285513\\\",\\\"value\\\":{}},\\\"_commands\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"125095274781401209\\\",\\\"value\\\":[]}}},\\\"children\\\":[{\\\"props\\\":{\\\"id\\\":\\\"plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\\\"},\\\"nodeType\\\":\\\"DOM\\\",\\\"type\\\":\\\"node\\\",\\\"instanceArgs\\\":{\\\"namespace\\\":\\\"html\\\",\\\"tag\\\":\\\"div\\\"},\\\"children\\\":[]}]},\\n window,\\n );\\n } else {\\n document\\n .querySelector('[data-webio-mountpoint=\\\"4084114492660062417\\\"]')\\n .innerHTML = (\\n '<div style=\\\"padding: 1em; background-color: #f8d6da; border: 1px solid #f5c6cb\\\">' +\\n '<p><strong>WebIO not detected.<\\/strong><\\/p>' +\\n '<p>Please read ' +\\n '<a href=\\\"https:\\/\\/juliagizmos.github.io\\/WebIO.jl\\/latest\\/troubleshooting\\/not-detected\\/\\\" target=\\\"_blank\\\">the troubleshooting guide<\\/a> ' +\\n 'for more information on how to resolve this issue.<\\/p>' +\\n '<p><a href=\\\"https:\\/\\/juliagizmos.github.io\\/WebIO.jl\\/latest\\/troubleshooting\\/not-detected\\/\\\" target=\\\"_blank\\\">https:\\/\\/juliagizmos.github.io\\/WebIO.jl\\/latest\\/troubleshooting\\/not-detected\\/<\\/a><\\/p>' +\\n '<\\/div>'\\n );\\n }\\n <\\/script>\\n<\\/div>\\n\"}}},\"children\":[{\"props\":{\"className\":\"webio-observable\",\"setInnerHtml\":\"<div\\n class=\\\"webio-mountpoint\\\"\\n data-webio-mountpoint=\\\"4084114492660062417\\\"\\n>\\n <script>\\n if (window.require && require.defined && require.defined(\\\"nbextensions\\/webio-jupyter-notebook\\\")) {\\n console.log(\\\"Jupyter WebIO extension detected, not mounting.\\\");\\n } else if (window.WebIO) {\\n WebIO.mount(\\n document.querySelector('[data-webio-mountpoint=\\\"4084114492660062417\\\"]'),\\n {\\\"props\\\":{},\\\"nodeType\\\":\\\"Scope\\\",\\\"type\\\":\\\"node\\\",\\\"instanceArgs\\\":{\\\"imports\\\":{\\\"data\\\":[{\\\"name\\\":\\\"Plotly\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\\\\\/assetserver\\\\\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\"},{\\\"name\\\":null,\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\\\\\/assetserver\\\\\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\"}],\\\"type\\\":\\\"async_block\\\"},\\\"id\\\":\\\"5297196054402219731\\\",\\\"handlers\\\":{\\\"_toImage\\\":[\\\"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"image\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"11394585473943300020\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},data)}))})\\\"],\\\"__get_gd_contents\\\":[\\\"(function (prop){prop==\\\\\\\"data\\\\\\\" ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"__gd_contents\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"10447163033576509159\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},this.plotElem.data)) : undefined; return prop==\\\\\\\"layout\\\\\\\" ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"__gd_contents\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"10447163033576509159\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},this.plotElem.layout)) : undefined})\\\"],\\\"_downloadImage\\\":[\\\"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})\\\"],\\\"_commands\\\":[\\\"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})\\\"]},\\\"systemjs_options\\\":null,\\\"mount_callbacks\\\":[\\\"function () {\\\\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\\\\\\\"#plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\\\\\\\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\\\\\\\"100%\\\\\\\", gd.style.height=\\\\\\\"100vh\\\\\\\", gd.style.marginLeft=\\\\\\\"0%\\\\\\\", gd.style.marginTop=\\\\\\\"0vh\\\\\\\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\\\\\\\"y\\\\\\\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\\\\\\\"type\\\\\\\":\\\\\\\"scatter\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"test\\\\\\\",\\\\\\\"linewidth\\\\\\\":0.5,\\\\\\\"x\\\\\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\\\\\\\"y\\\\\\\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\\\\\\\"type\\\\\\\":\\\\\\\"scatter\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"train\\\\\\\",\\\\\\\"linewidth\\\\\\\":0.5,\\\\\\\"x\\\\\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\\\\\\\"margin\\\\\\\":{\\\\\\\"l\\\\\\\":50,\\\\\\\"b\\\\\\\":50,\\\\\\\"r\\\\\\\":50,\\\\\\\"t\\\\\\\":60}},{}); gd.on(\\\\\\\"plotly_hover\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"hover\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"hover\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"1801606762083986358\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined})); gd.on(\\\\\\\"plotly_unhover\\\\\\\",(function (){return WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"hover\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"1801606762083986358\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},{})})); gd.on(\\\\\\\"plotly_selected\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"selected\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"selected\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"7185035130503739725\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined})); gd.on(\\\\\\\"plotly_deselect\\\\\\\",(function (){return WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"selected\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"7185035130503739725\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},{})})); gd.on(\\\\\\\"plotly_relayout\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"relayout\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"relayout\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"7361212773512285513\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined})); return gd.on(\\\\\\\"plotly_click\\\\\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\\\\\"click\\\\\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\\\\\"name\\\\\\\":\\\\\\\"click\\\\\\\",\\\\\\\"scope\\\\\\\":\\\\\\\"5297196054402219731\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"8911968687776290668\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"observable\\\\\\\"},filtered_data.out)) : undefined}))}));\\\\n (WebIO.importBlock({\\\\\\\"data\\\\\\\":[{\\\\\\\"name\\\\\\\":\\\\\\\"Plotly\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"js\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"\\\\\\/assetserver\\\\\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\\\\\"},{\\\\\\\"name\\\\\\\":null,\\\\\\\"type\\\\\\\":\\\\\\\"js\\\\\\\",\\\\\\\"url\\\\\\\":\\\\\\\"\\\\\\/assetserver\\\\\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\\\\\"}],\\\\\\\"type\\\\\\\":\\\\\\\"async_block\\\\\\\"})).then((imports) => handler.apply(this, imports));\\\\n}\\\\n\\\"],\\\"observables\\\":{\\\"_toImage\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"8393621645212535049\\\",\\\"value\\\":{}},\\\"hover\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"1801606762083986358\\\",\\\"value\\\":{}},\\\"selected\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"7185035130503739725\\\",\\\"value\\\":{}},\\\"__gd_contents\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"10447163033576509159\\\",\\\"value\\\":{}},\\\"click\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"8911968687776290668\\\",\\\"value\\\":{}},\\\"image\\\":{\\\"sync\\\":true,\\\"id\\\":\\\"11394585473943300020\\\",\\\"value\\\":\\\"\\\"},\\\"__get_gd_contents\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"4433019374575458594\\\",\\\"value\\\":\\\"\\\"},\\\"_downloadImage\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"9991633768248962807\\\",\\\"value\\\":{}},\\\"relayout\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"7361212773512285513\\\",\\\"value\\\":{}},\\\"_commands\\\":{\\\"sync\\\":false,\\\"id\\\":\\\"125095274781401209\\\",\\\"value\\\":[]}}},\\\"children\\\":[{\\\"props\\\":{\\\"id\\\":\\\"plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\\\"},\\\"nodeType\\\":\\\"DOM\\\",\\\"type\\\":\\\"node\\\",\\\"instanceArgs\\\":{\\\"namespace\\\":\\\"html\\\",\\\"tag\\\":\\\"div\\\"},\\\"children\\\":[]}]},\\n window,\\n );\\n } else {\\n document\\n .querySelector('[data-webio-mountpoint=\\\"4084114492660062417\\\"]')\\n .innerHTML = (\\n '<div style=\\\"padding: 1em; background-color: #f8d6da; border: 1px solid #f5c6cb\\\">' +\\n '<p><strong>WebIO not detected.<\\/strong><\\/p>' +\\n '<p>Please read ' +\\n '<a href=\\\"https:\\/\\/juliagizmos.github.io\\/WebIO.jl\\/latest\\/troubleshooting\\/not-detected\\/\\\" target=\\\"_blank\\\">the troubleshooting guide<\\/a> ' +\\n 'for more information on how to resolve this issue.<\\/p>' +\\n '<p><a href=\\\"https:\\/\\/juliagizmos.github.io\\/WebIO.jl\\/latest\\/troubleshooting\\/not-detected\\/\\\" target=\\\"_blank\\\">https:\\/\\/juliagizmos.github.io\\/WebIO.jl\\/latest\\/troubleshooting\\/not-detected\\/<\\/a><\\/p>' +\\n '<\\/div>'\\n );\\n }\\n <\\/script>\\n<\\/div>\\n\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[]}]}]},\n", | |
" window,\n", | |
" );\n", | |
" } else {\n", | |
" document\n", | |
" .querySelector('[data-webio-mountpoint=\"13357267915588967354\"]')\n", | |
" .innerHTML = (\n", | |
" '<div style=\"padding: 1em; background-color: #f8d6da; border: 1px solid #f5c6cb\">' +\n", | |
" '<p><strong>WebIO not detected.</strong></p>' +\n", | |
" '<p>Please read ' +\n", | |
" '<a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">the troubleshooting guide</a> ' +\n", | |
" 'for more information on how to resolve this issue.</p>' +\n", | |
" '<p><a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/</a></p>' +\n", | |
" '</div>'\n", | |
" );\n", | |
" }\n", | |
" </script>\n", | |
"</div>\n" | |
], | |
"text/plain": [ | |
"(div { style=Dict(\"display\" => \"flex\",\"flex-direction\" => \"column\") }\n", | |
" (div { style=Dict(\"display\" => \"flex\",\"flex-direction\" => \"row\") }\n", | |
" Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Scope(Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :label), Any[\"ϵ\"], Dict{Symbol,Any}(:className => \"interact \",:style => Dict{Any,Any}(:padding => \"5px 10px 0px 10px\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-left\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :input), Any[], Dict{Symbol,Any}(:max => 3,:min => 1,:attributes => Dict{Any,Any}(:type => \"range\",Symbol(\"data-bind\") => \"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\" => \"horizontal\"),:step => 1,:className => \"slider slider is-fullwidth\",:style => Dict{Any,Any}()))], Dict{Symbol,Any}(:className => \"interact-flex-row-center\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :p), Any[], Dict{Symbol,Any}(:attributes => Dict(\"data-bind\" => \"text: formatted_val\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-right\"))], Dict{Symbol,Any}(:className => \"interact-flex-row interact-widget\")), Dict{String,Tuple{Observables.AbstractObservable,Union{Nothing, Bool}}}(\"changes\" => (Observable{Int64} with 1 listeners. Value:\n", | |
"0, nothing),\"index\" => (Observable{Any} with 2 listeners. Value:\n", | |
"2, nothing)), Set{String}(), nothing, Asset[Asset(\"js\", \"knockout\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout.js\"), Asset(\"js\", \"knockout_punches\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout_punches.js\"), Asset(\"js\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\all.js\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\style.css\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Interact\\\\SbgIk\\\\src\\\\..\\\\assets\\\\bulma_confined.min.css\")], Dict{Any,Any}(\"changes\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\")],\"index\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\")]), WebIO.ConnectionPool(Channel{Any}(sz_max:32,sz_curr:0), Set{AbstractConnection}(), Base.GenericCondition{Base.AlwaysLockedST}(Base.InvasiveLinkedList{Task}(Task (runnable) @0x00000001abde6e10, Task (runnable) @0x00000001abde6e10), Base.AlwaysLockedST(1))), WebIO.JSString[WebIO.JSString(\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.0001\\\",\\\"0.001\\\",\\\"0.01\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"3471770704551951765\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"888226069532377793\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"3471770704551951765\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"13005806167829597626\\\",\\\"id\\\":\\\"888226069532377793\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\")])], Dict{Symbol,Any}(:className => \"field interact-widget\"))\n", | |
" Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Scope(Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :label), Any[\"σ\"], Dict{Symbol,Any}(:className => \"interact \",:style => Dict{Any,Any}(:padding => \"5px 10px 0px 10px\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-left\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :input), Any[], Dict{Symbol,Any}(:max => 2,:min => 1,:attributes => Dict{Any,Any}(:type => \"range\",Symbol(\"data-bind\") => \"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\" => \"horizontal\"),:step => 1,:className => \"slider slider is-fullwidth\",:style => Dict{Any,Any}()))], Dict{Symbol,Any}(:className => \"interact-flex-row-center\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :p), Any[], Dict{Symbol,Any}(:attributes => Dict(\"data-bind\" => \"text: formatted_val\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-right\"))], Dict{Symbol,Any}(:className => \"interact-flex-row interact-widget\")), Dict{String,Tuple{Observables.AbstractObservable,Union{Nothing, Bool}}}(\"changes\" => (Observable{Int64} with 1 listeners. Value:\n", | |
"0, nothing),\"index\" => (Observable{Any} with 2 listeners. Value:\n", | |
"1, nothing)), Set{String}(), nothing, Asset[Asset(\"js\", \"knockout\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout.js\"), Asset(\"js\", \"knockout_punches\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout_punches.js\"), Asset(\"js\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\all.js\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\style.css\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Interact\\\\SbgIk\\\\src\\\\..\\\\assets\\\\bulma_confined.min.css\")], Dict{Any,Any}(\"changes\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\")],\"index\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\")]), WebIO.ConnectionPool(Channel{Any}(sz_max:32,sz_curr:0), Set{AbstractConnection}(), Base.GenericCondition{Base.AlwaysLockedST}(Base.InvasiveLinkedList{Task}(Task (runnable) @0x00000001abde7c70, Task (runnable) @0x00000001abde7c70), Base.AlwaysLockedST(1))), WebIO.JSString[WebIO.JSString(\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.05\\\",\\\"0.5\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"1265085318451203900\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"11636833043439181711\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"1265085318451203900\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5606979261643614894\\\",\\\"id\\\":\\\"11636833043439181711\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\")])], Dict{Symbol,Any}(:className => \"field interact-widget\")))\n", | |
" Observable{Any} with 0 listeners. Value:\n", | |
"PlotlyJS.SyncPlot(data: [\n", | |
" \"scatter with fields linewidth, name, type, x, and y\",\n", | |
" \"scatter with fields linewidth, name, type, x, and y\"\n", | |
"]\n", | |
"\n", | |
"layout: \"layout with field margin\"\n", | |
"\n", | |
", Scope(Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[], Dict{Symbol,Any}(:id => \"plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\")), Dict{String,Tuple{Observables.AbstractObservable,Union{Nothing, Bool}}}(\"_toImage\" => (Observable{Dict{Any,Any}} with 1 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"hover\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"selected\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"__gd_contents\" => (Observable{Any} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"click\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"image\" => (Observable{String} with 1 listeners. Value:\n", | |
"\"\", nothing),\"__get_gd_contents\" => (Observable{String} with 1 listeners. Value:\n", | |
"\"\", nothing),\"_downloadImage\" => (Observable{Dict{Any,Any}} with 1 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"relayout\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"_commands\" => (Observable{Any} with 1 listeners. Value:\n", | |
"Any[], nothing)…), Set{String}(), nothing, Asset[Asset(\"js\", \"Plotly\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\PlotlyJS\\\\m2Lzd\\\\src\\\\..\\\\assets\\\\plotly-latest.min.js\"), Asset(\"js\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\PlotlyJS\\\\m2Lzd\\\\src\\\\..\\\\assets\\\\plotly_webio.bundle.js\")], Dict{Any,Any}(\"_toImage\" => Any[WebIO.JSString(\"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\\\"name\\\":\\\"image\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"11394585473943300020\\\",\\\"type\\\":\\\"observable\\\"},data)}))})\")],\"__get_gd_contents\" => Any[WebIO.JSString(\"(function (prop){prop==\\\"data\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"10447163033576509159\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.data)) : undefined; return prop==\\\"layout\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"10447163033576509159\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.layout)) : undefined})\")],\"_downloadImage\" => Any[WebIO.JSString(\"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})\")],\"_commands\" => Any[WebIO.JSString(\"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})\")]), WebIO.ConnectionPool(Channel{Any}(sz_max:32,sz_curr:0), Set{AbstractConnection}(), Base.GenericCondition{Base.AlwaysLockedST}(Base.InvasiveLinkedList{Task}(Task (runnable) @0x00000001afd96850, Task (runnable) @0x00000001afd96850), Base.AlwaysLockedST(1))), WebIO.JSString[WebIO.JSString(\"function () {\\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\\\"#plot-45ee7457-d830-42a9-95c8-c75e3a8d599d\\\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\\\"100%\\\", gd.style.height=\\\"100vh\\\", gd.style.marginLeft=\\\"0%\\\", gd.style.marginTop=\\\"0vh\\\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\\\"y\\\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"test\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\\\"y\\\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"train\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\\\"margin\\\":{\\\"l\\\":50,\\\"b\\\":50,\\\"r\\\":50,\\\"t\\\":60}},{}); gd.on(\\\"plotly_hover\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"hover\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"1801606762083986358\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_unhover\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"1801606762083986358\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_selected\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"selected\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7185035130503739725\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_deselect\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7185035130503739725\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_relayout\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"relayout\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"relayout\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"7361212773512285513\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); return gd.on(\\\"plotly_click\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"click\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"click\\\",\\\"scope\\\":\\\"5297196054402219731\\\",\\\"id\\\":\\\"8911968687776290668\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined}))}));\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"Plotly\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\"},{\\\"name\\\":null,\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\")]), Dict{Any,Any}(), nothing))" | |
] | |
}, | |
"execution_count": 45, | |
"metadata": { | |
"application/vnd.webio.node+json": { | |
"kernelId": "3309d807-07e1-438f-baaa-a9d0df7f1c22" | |
} | |
}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"ϵ = widget([10.0^i for i in (-4):(-2)], label=\"ϵ\")\n", | |
"σ = widget([5*10.0^i for i in (-2):(-1)], label=\"σ\")\n", | |
"\n", | |
"function create_plot(ϵ, σ)\n", | |
" plt = PlotlyJS.Plot([\n", | |
" PlotlyJS.scatter(;x=1:length(results[0.5][ϵ].test_acc), y=results[0.5][ϵ].test_acc, name=\"test\", linewidth=0.5),\n", | |
" PlotlyJS.scatter(;x=1:length(results[0.5][ϵ].train_acc), y=results[0.5][ϵ].train_acc, name=\"train\", linewidth=0.5)\n", | |
" ])\n", | |
"# return plt\n", | |
" return PlotlyJS.plot(plt)\n", | |
"end\n", | |
"interactive_plot = map(create_plot, ϵ, σ)\n", | |
"\n", | |
"vbox(\n", | |
" hbox(ϵ, σ), # stack horizontally\n", | |
" interactive_plot\n", | |
")\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 46, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"application/vnd.webio.node+json": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
"ϵ" | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "label" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact ", | |
"style": { | |
"padding": "5px 10px 0px 10px" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-left" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "input" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}", | |
"orient": "horizontal", | |
"type": "range" | |
}, | |
"className": "slider slider is-fullwidth", | |
"max": 3, | |
"min": 1, | |
"step": 1, | |
"style": {} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-center" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "p" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "text: formatted_val" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-right" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row interact-widget" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"handlers": { | |
"changes": [ | |
"(function (val){return (val!=this.model[\"changes\"]()) ? (this.valueFromJulia[\"changes\"]=true, this.model[\"changes\"](val)) : undefined})" | |
], | |
"index": [ | |
"(function (val){return (val!=this.model[\"index\"]()) ? (this.valueFromJulia[\"index\"]=true, this.model[\"index\"](val)) : undefined})" | |
] | |
}, | |
"id": "5631177491757017265", | |
"imports": { | |
"data": [ | |
{ | |
"name": "knockout", | |
"type": "js", | |
"url": "/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js" | |
}, | |
{ | |
"name": "knockout_punches", | |
"type": "js", | |
"url": "/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js" | |
}, | |
{ | |
"name": null, | |
"type": "js", | |
"url": "/assetserver/2182d55e67ae0c357235a5e27282375a80af142a-all.js" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css" | |
} | |
], | |
"type": "async_block" | |
}, | |
"mount_callbacks": [ | |
"function () {\n var handler = (function (ko, koPunches) {\n ko.punches.enableAll();\n ko.bindingHandlers.numericValue = {\n init: function(element, valueAccessor, allBindings, data, context) {\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\n stringified.subscribe(function(value) {\n var val = parseFloat(value);\n if (!isNaN(val)) {\n valueAccessor()(val);\n }\n });\n valueAccessor().subscribe(function(value) {\n var str = JSON.stringify(value);\n if ((str == \"0\") && ([\"-0\", \"-0.\"].indexOf(stringified()) >= 0))\n return;\n if ([\"null\", \"\"].indexOf(str) >= 0)\n return;\n stringified(str);\n });\n ko.applyBindingsToNode(\n element,\n {\n value: stringified,\n valueUpdate: allBindings.get('valueUpdate'),\n },\n context,\n );\n }\n };\n var json_data = {\"formatted_vals\":[\"0.0001\",\"0.001\",\"0.01\"],\"changes\":WebIO.getval({\"name\":\"changes\",\"scope\":\"5631177491757017265\",\"id\":\"3700620698818825228\",\"type\":\"observable\"}),\"index\":WebIO.getval({\"name\":\"index\",\"scope\":\"5631177491757017265\",\"id\":\"11777997649129443287\",\"type\":\"observable\"})};\n var self = this;\n function AppViewModel() {\n for (var key in json_data) {\n var el = json_data[key];\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\n }\n \n [this[\"formatted_val\"]=ko.computed( function(){\n return this.formatted_vals()[parseInt(this.index())-(1)];\n }\n,this)]\n [this[\"changes\"].subscribe((function (val){!(this.valueFromJulia[\"changes\"]) ? (WebIO.setval({\"name\":\"changes\",\"scope\":\"5631177491757017265\",\"id\":\"3700620698818825228\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"changes\"]=false}),self),this[\"index\"].subscribe((function (val){!(this.valueFromJulia[\"index\"]) ? (WebIO.setval({\"name\":\"index\",\"scope\":\"5631177491757017265\",\"id\":\"11777997649129443287\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"index\"]=false}),self)]\n \n }\n self.model = new AppViewModel();\n self.valueFromJulia = {};\n for (var key in json_data) {\n self.valueFromJulia[key] = false;\n }\n ko.applyBindings(self.model, self.dom);\n}\n);\n (WebIO.importBlock({\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"}],\"type\":\"async_block\"})).then((imports) => handler.apply(this, imports));\n}\n" | |
], | |
"observables": { | |
"changes": { | |
"id": "3700620698818825228", | |
"sync": false, | |
"value": 0 | |
}, | |
"index": { | |
"id": "11777997649129443287", | |
"sync": true, | |
"value": 2 | |
} | |
}, | |
"systemjs_options": null | |
}, | |
"nodeType": "Scope", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "field interact-widget" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
"σ" | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "label" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact ", | |
"style": { | |
"padding": "5px 10px 0px 10px" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-left" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "input" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}", | |
"orient": "horizontal", | |
"type": "range" | |
}, | |
"className": "slider slider is-fullwidth", | |
"max": 2, | |
"min": 1, | |
"step": 1, | |
"style": {} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-center" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "p" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"attributes": { | |
"data-bind": "text: formatted_val" | |
} | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row-right" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row interact-widget" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"handlers": { | |
"changes": [ | |
"(function (val){return (val!=this.model[\"changes\"]()) ? (this.valueFromJulia[\"changes\"]=true, this.model[\"changes\"](val)) : undefined})" | |
], | |
"index": [ | |
"(function (val){return (val!=this.model[\"index\"]()) ? (this.valueFromJulia[\"index\"]=true, this.model[\"index\"](val)) : undefined})" | |
] | |
}, | |
"id": "12615857277584589604", | |
"imports": { | |
"data": [ | |
{ | |
"name": "knockout", | |
"type": "js", | |
"url": "/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js" | |
}, | |
{ | |
"name": "knockout_punches", | |
"type": "js", | |
"url": "/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js" | |
}, | |
{ | |
"name": null, | |
"type": "js", | |
"url": "/assetserver/2182d55e67ae0c357235a5e27282375a80af142a-all.js" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css" | |
}, | |
{ | |
"name": null, | |
"type": "css", | |
"url": "/assetserver/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css" | |
} | |
], | |
"type": "async_block" | |
}, | |
"mount_callbacks": [ | |
"function () {\n var handler = (function (ko, koPunches) {\n ko.punches.enableAll();\n ko.bindingHandlers.numericValue = {\n init: function(element, valueAccessor, allBindings, data, context) {\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\n stringified.subscribe(function(value) {\n var val = parseFloat(value);\n if (!isNaN(val)) {\n valueAccessor()(val);\n }\n });\n valueAccessor().subscribe(function(value) {\n var str = JSON.stringify(value);\n if ((str == \"0\") && ([\"-0\", \"-0.\"].indexOf(stringified()) >= 0))\n return;\n if ([\"null\", \"\"].indexOf(str) >= 0)\n return;\n stringified(str);\n });\n ko.applyBindingsToNode(\n element,\n {\n value: stringified,\n valueUpdate: allBindings.get('valueUpdate'),\n },\n context,\n );\n }\n };\n var json_data = {\"formatted_vals\":[\"0.05\",\"0.5\"],\"changes\":WebIO.getval({\"name\":\"changes\",\"scope\":\"12615857277584589604\",\"id\":\"1457450686684836621\",\"type\":\"observable\"}),\"index\":WebIO.getval({\"name\":\"index\",\"scope\":\"12615857277584589604\",\"id\":\"626500180970004959\",\"type\":\"observable\"})};\n var self = this;\n function AppViewModel() {\n for (var key in json_data) {\n var el = json_data[key];\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\n }\n \n [this[\"formatted_val\"]=ko.computed( function(){\n return this.formatted_vals()[parseInt(this.index())-(1)];\n }\n,this)]\n [this[\"changes\"].subscribe((function (val){!(this.valueFromJulia[\"changes\"]) ? (WebIO.setval({\"name\":\"changes\",\"scope\":\"12615857277584589604\",\"id\":\"1457450686684836621\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"changes\"]=false}),self),this[\"index\"].subscribe((function (val){!(this.valueFromJulia[\"index\"]) ? (WebIO.setval({\"name\":\"index\",\"scope\":\"12615857277584589604\",\"id\":\"626500180970004959\",\"type\":\"observable\"},val)) : undefined; return this.valueFromJulia[\"index\"]=false}),self)]\n \n }\n self.model = new AppViewModel();\n self.valueFromJulia = {};\n for (var key in json_data) {\n self.valueFromJulia[key] = false;\n }\n ko.applyBindings(self.model, self.dom);\n}\n);\n (WebIO.importBlock({\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"}],\"type\":\"async_block\"})).then((imports) => handler.apply(this, imports));\n}\n" | |
], | |
"observables": { | |
"changes": { | |
"id": "1457450686684836621", | |
"sync": false, | |
"value": 0 | |
}, | |
"index": { | |
"id": "626500180970004959", | |
"sync": true, | |
"value": 1 | |
} | |
}, | |
"systemjs_options": null | |
}, | |
"nodeType": "Scope", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "field interact-widget" | |
}, | |
"type": "node" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"id": "11555937665461186610", | |
"name": "obs-node" | |
}, | |
"nodeType": "ObservableNode", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"handlers": {}, | |
"id": "1705427660908125546", | |
"imports": { | |
"data": [], | |
"type": "async_block" | |
}, | |
"mount_callbacks": [], | |
"observables": { | |
"obs-node": { | |
"id": "11555937665461186610", | |
"sync": false, | |
"value": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"id": "plot-66448816-25da-48b8-831b-279e4816df29" | |
}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"handlers": { | |
"__get_gd_contents": [ | |
"(function (prop){prop==\"data\" ? (WebIO.setval({\"name\":\"__gd_contents\",\"scope\":\"2845923228676453660\",\"id\":\"6497331153570625402\",\"type\":\"observable\"},this.plotElem.data)) : undefined; return prop==\"layout\" ? (WebIO.setval({\"name\":\"__gd_contents\",\"scope\":\"2845923228676453660\",\"id\":\"6497331153570625402\",\"type\":\"observable\"},this.plotElem.layout)) : undefined})" | |
], | |
"_commands": [ | |
"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})" | |
], | |
"_downloadImage": [ | |
"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})" | |
], | |
"_toImage": [ | |
"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\"name\":\"image\",\"scope\":\"2845923228676453660\",\"id\":\"10115380771835592724\",\"type\":\"observable\"},data)}))})" | |
] | |
}, | |
"id": "2845923228676453660", | |
"imports": { | |
"data": [ | |
{ | |
"name": "Plotly", | |
"type": "js", | |
"url": "/assetserver/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js" | |
}, | |
{ | |
"name": null, | |
"type": "js", | |
"url": "/assetserver/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js" | |
} | |
], | |
"type": "async_block" | |
}, | |
"mount_callbacks": [ | |
"function () {\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\"#plot-66448816-25da-48b8-831b-279e4816df29\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\"100%\", gd.style.height=\"100vh\", gd.style.marginLeft=\"0%\", gd.style.marginTop=\"0vh\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\"y\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\"type\":\"scatter\",\"name\":\"test\",\"linewidth\":0.5,\"x\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\"y\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\"type\":\"scatter\",\"name\":\"train\",\"linewidth\":0.5,\"x\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\"margin\":{\"l\":50,\"b\":50,\"r\":50,\"t\":60}},{}); gd.on(\"plotly_hover\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\"hover\"); return !(filtered_data.isnil) ? (WebIO.setval({\"name\":\"hover\",\"scope\":\"2845923228676453660\",\"id\":\"1604814652504308591\",\"type\":\"observable\"},filtered_data.out)) : undefined})); gd.on(\"plotly_unhover\",(function (){return WebIO.setval({\"name\":\"hover\",\"scope\":\"2845923228676453660\",\"id\":\"1604814652504308591\",\"type\":\"observable\"},{})})); gd.on(\"plotly_selected\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\"selected\"); return !(filtered_data.isnil) ? (WebIO.setval({\"name\":\"selected\",\"scope\":\"2845923228676453660\",\"id\":\"16506455463898317743\",\"type\":\"observable\"},filtered_data.out)) : undefined})); gd.on(\"plotly_deselect\",(function (){return WebIO.setval({\"name\":\"selected\",\"scope\":\"2845923228676453660\",\"id\":\"16506455463898317743\",\"type\":\"observable\"},{})})); gd.on(\"plotly_relayout\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\"relayout\"); return !(filtered_data.isnil) ? (WebIO.setval({\"name\":\"relayout\",\"scope\":\"2845923228676453660\",\"id\":\"8386376565731521516\",\"type\":\"observable\"},filtered_data.out)) : undefined})); return gd.on(\"plotly_click\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\"click\"); return !(filtered_data.isnil) ? (WebIO.setval({\"name\":\"click\",\"scope\":\"2845923228676453660\",\"id\":\"2972377240707377890\",\"type\":\"observable\"},filtered_data.out)) : undefined}))}));\n (WebIO.importBlock({\"data\":[{\"name\":\"Plotly\",\"type\":\"js\",\"url\":\"/assetserver/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"/assetserver/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\"}],\"type\":\"async_block\"})).then((imports) => handler.apply(this, imports));\n}\n" | |
], | |
"observables": { | |
"__gd_contents": { | |
"id": "6497331153570625402", | |
"sync": false, | |
"value": {} | |
}, | |
"__get_gd_contents": { | |
"id": "7331584987353820764", | |
"sync": false, | |
"value": "" | |
}, | |
"_commands": { | |
"id": "8295217815419270535", | |
"sync": false, | |
"value": [] | |
}, | |
"_downloadImage": { | |
"id": "1586072828260080457", | |
"sync": false, | |
"value": {} | |
}, | |
"_toImage": { | |
"id": "13911479075482936662", | |
"sync": false, | |
"value": {} | |
}, | |
"click": { | |
"id": "2972377240707377890", | |
"sync": false, | |
"value": {} | |
}, | |
"hover": { | |
"id": "1604814652504308591", | |
"sync": false, | |
"value": {} | |
}, | |
"image": { | |
"id": "10115380771835592724", | |
"sync": true, | |
"value": "" | |
}, | |
"relayout": { | |
"id": "8386376565731521516", | |
"sync": false, | |
"value": {} | |
}, | |
"selected": { | |
"id": "16506455463898317743", | |
"sync": false, | |
"value": {} | |
} | |
}, | |
"systemjs_options": null | |
}, | |
"nodeType": "Scope", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": { | |
"className": "interact-flex-row interact-widget" | |
}, | |
"type": "node" | |
} | |
} | |
}, | |
"systemjs_options": null | |
}, | |
"nodeType": "Scope", | |
"props": {}, | |
"type": "node" | |
} | |
], | |
"instanceArgs": { | |
"namespace": "html", | |
"tag": "div" | |
}, | |
"nodeType": "DOM", | |
"props": {}, | |
"type": "node" | |
}, | |
"text/html": [ | |
"<div\n", | |
" class=\"webio-mountpoint\"\n", | |
" data-webio-mountpoint=\"9447188204107521833\"\n", | |
">\n", | |
" <script>\n", | |
" if (window.require && require.defined && require.defined(\"nbextensions/webio-jupyter-notebook\")) {\n", | |
" console.log(\"Jupyter WebIO extension detected, not mounting.\");\n", | |
" } else if (window.WebIO) {\n", | |
" WebIO.mount(\n", | |
" document.querySelector('[data-webio-mountpoint=\"9447188204107521833\"]'),\n", | |
" {\"props\":{},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"field interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"\\/assetserver\\/2182d55e67ae0c357235a5e27282375a80af142a-all.js\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css\"}],\"type\":\"async_block\"},\"id\":\"5631177491757017265\",\"handlers\":{\"changes\":[\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\"],\"index\":[\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\"]},\"systemjs_options\":null,\"mount_callbacks\":[\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.0001\\\",\\\"0.001\\\",\\\"0.01\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"3700620698818825228\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"11777997649129443287\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"3700620698818825228\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"11777997649129443287\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\"],\"observables\":{\"changes\":{\"sync\":false,\"id\":\"3700620698818825228\",\"value\":0},\"index\":{\"sync\":true,\"id\":\"11777997649129443287\",\"value\":2}}},\"children\":[{\"props\":{\"className\":\"interact-flex-row interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact-flex-row-left\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact \",\"style\":{\"padding\":\"5px 10px 0px 10px\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"label\"},\"children\":[\"ϵ\"]}]},{\"props\":{\"className\":\"interact-flex-row-center\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"max\":3,\"min\":1,\"attributes\":{\"type\":\"range\",\"data-bind\":\"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\":\"horizontal\"},\"step\":1,\"className\":\"slider slider is-fullwidth\",\"style\":{}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"input\"},\"children\":[]}]},{\"props\":{\"className\":\"interact-flex-row-right\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"attributes\":{\"data-bind\":\"text: formatted_val\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"p\"},\"children\":[]}]}]}]}]},{\"props\":{\"className\":\"field interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[{\"name\":\"knockout\",\"type\":\"js\",\"url\":\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\"},{\"name\":\"knockout_punches\",\"type\":\"js\",\"url\":\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"\\/assetserver\\/2182d55e67ae0c357235a5e27282375a80af142a-all.js\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/f63eeede81ecdf76ba8e57d355ff65afe211c1f4-style.css\"},{\"name\":null,\"type\":\"css\",\"url\":\"\\/assetserver\\/108f97677b7573b24ee37de6341f8fb13d580468-bulma_confined.min.css\"}],\"type\":\"async_block\"},\"id\":\"12615857277584589604\",\"handlers\":{\"changes\":[\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\"],\"index\":[\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\"]},\"systemjs_options\":null,\"mount_callbacks\":[\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.05\\\",\\\"0.5\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"1457450686684836621\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"626500180970004959\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"1457450686684836621\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"626500180970004959\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\"],\"observables\":{\"changes\":{\"sync\":false,\"id\":\"1457450686684836621\",\"value\":0},\"index\":{\"sync\":true,\"id\":\"626500180970004959\",\"value\":1}}},\"children\":[{\"props\":{\"className\":\"interact-flex-row interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact-flex-row-left\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"className\":\"interact \",\"style\":{\"padding\":\"5px 10px 0px 10px\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"label\"},\"children\":[\"σ\"]}]},{\"props\":{\"className\":\"interact-flex-row-center\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"max\":2,\"min\":1,\"attributes\":{\"type\":\"range\",\"data-bind\":\"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\":\"horizontal\"},\"step\":1,\"className\":\"slider slider is-fullwidth\",\"style\":{}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"input\"},\"children\":[]}]},{\"props\":{\"className\":\"interact-flex-row-right\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{\"attributes\":{\"data-bind\":\"text: formatted_val\"}},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"p\"},\"children\":[]}]}]}]}]},{\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[],\"type\":\"async_block\"},\"id\":\"10917192299543508680\",\"handlers\":{},\"systemjs_options\":null,\"mount_callbacks\":[],\"observables\":{\"obs-node\":{\"sync\":false,\"id\":\"4299249214729925338\",\"value\":{\"props\":{\"className\":\"interact-flex-row interact-widget\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[{\"props\":{},\"nodeType\":\"Scope\",\"type\":\"node\",\"instanceArgs\":{\"imports\":{\"data\":[{\"name\":\"Plotly\",\"type\":\"js\",\"url\":\"\\/assetserver\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\"},{\"name\":null,\"type\":\"js\",\"url\":\"\\/assetserver\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\"}],\"type\":\"async_block\"},\"id\":\"2845923228676453660\",\"handlers\":{\"_toImage\":[\"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\\\"name\\\":\\\"image\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"10115380771835592724\\\",\\\"type\\\":\\\"observable\\\"},data)}))})\"],\"__get_gd_contents\":[\"(function (prop){prop==\\\"data\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"6497331153570625402\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.data)) : undefined; return prop==\\\"layout\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"6497331153570625402\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.layout)) : undefined})\"],\"_downloadImage\":[\"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})\"],\"_commands\":[\"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})\"]},\"systemjs_options\":null,\"mount_callbacks\":[\"function () {\\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\\\"#plot-66448816-25da-48b8-831b-279e4816df29\\\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\\\"100%\\\", gd.style.height=\\\"100vh\\\", gd.style.marginLeft=\\\"0%\\\", gd.style.marginTop=\\\"0vh\\\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\\\"y\\\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"test\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\\\"y\\\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"train\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\\\"margin\\\":{\\\"l\\\":50,\\\"b\\\":50,\\\"r\\\":50,\\\"t\\\":60}},{}); gd.on(\\\"plotly_hover\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"hover\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"1604814652504308591\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_unhover\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"1604814652504308591\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_selected\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"selected\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"16506455463898317743\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_deselect\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"16506455463898317743\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_relayout\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"relayout\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"relayout\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"8386376565731521516\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); return gd.on(\\\"plotly_click\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"click\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"click\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"2972377240707377890\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined}))}));\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"Plotly\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\"},{\\\"name\\\":null,\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"\\/assetserver\\/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\"],\"observables\":{\"_toImage\":{\"sync\":false,\"id\":\"13911479075482936662\",\"value\":{}},\"hover\":{\"sync\":false,\"id\":\"1604814652504308591\",\"value\":{}},\"selected\":{\"sync\":false,\"id\":\"16506455463898317743\",\"value\":{}},\"__gd_contents\":{\"sync\":false,\"id\":\"6497331153570625402\",\"value\":{}},\"click\":{\"sync\":false,\"id\":\"2972377240707377890\",\"value\":{}},\"image\":{\"sync\":true,\"id\":\"10115380771835592724\",\"value\":\"\"},\"__get_gd_contents\":{\"sync\":false,\"id\":\"7331584987353820764\",\"value\":\"\"},\"_downloadImage\":{\"sync\":false,\"id\":\"1586072828260080457\",\"value\":{}},\"relayout\":{\"sync\":false,\"id\":\"8386376565731521516\",\"value\":{}},\"_commands\":{\"sync\":false,\"id\":\"8295217815419270535\",\"value\":[]}}},\"children\":[{\"props\":{\"id\":\"plot-66448816-25da-48b8-831b-279e4816df29\"},\"nodeType\":\"DOM\",\"type\":\"node\",\"instanceArgs\":{\"namespace\":\"html\",\"tag\":\"div\"},\"children\":[]}]}]}}}},\"children\":[{\"props\":{},\"nodeType\":\"ObservableNode\",\"type\":\"node\",\"instanceArgs\":{\"id\":\"4299249214729925338\",\"name\":\"obs-node\"},\"children\":[]}]}]},\n", | |
" window,\n", | |
" );\n", | |
" } else {\n", | |
" document\n", | |
" .querySelector('[data-webio-mountpoint=\"9447188204107521833\"]')\n", | |
" .innerHTML = (\n", | |
" '<div style=\"padding: 1em; background-color: #f8d6da; border: 1px solid #f5c6cb\">' +\n", | |
" '<p><strong>WebIO not detected.</strong></p>' +\n", | |
" '<p>Please read ' +\n", | |
" '<a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">the troubleshooting guide</a> ' +\n", | |
" 'for more information on how to resolve this issue.</p>' +\n", | |
" '<p><a href=\"https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/\" target=\"_blank\">https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/</a></p>' +\n", | |
" '</div>'\n", | |
" );\n", | |
" }\n", | |
" </script>\n", | |
"</div>\n" | |
], | |
"text/plain": [ | |
"Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Scope(Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :label), Any[\"ϵ\"], Dict{Symbol,Any}(:className => \"interact \",:style => Dict{Any,Any}(:padding => \"5px 10px 0px 10px\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-left\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :input), Any[], Dict{Symbol,Any}(:max => 3,:min => 1,:attributes => Dict{Any,Any}(:type => \"range\",Symbol(\"data-bind\") => \"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\" => \"horizontal\"),:step => 1,:className => \"slider slider is-fullwidth\",:style => Dict{Any,Any}()))], Dict{Symbol,Any}(:className => \"interact-flex-row-center\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :p), Any[], Dict{Symbol,Any}(:attributes => Dict(\"data-bind\" => \"text: formatted_val\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-right\"))], Dict{Symbol,Any}(:className => \"interact-flex-row interact-widget\")), Dict{String,Tuple{Observables.AbstractObservable,Union{Nothing, Bool}}}(\"changes\" => (Observable{Int64} with 1 listeners. Value:\n", | |
"0, nothing),\"index\" => (Observable{Any} with 2 listeners. Value:\n", | |
"2, nothing)), Set{String}(), nothing, Asset[Asset(\"js\", \"knockout\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout.js\"), Asset(\"js\", \"knockout_punches\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout_punches.js\"), Asset(\"js\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\all.js\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\style.css\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Interact\\\\SbgIk\\\\src\\\\..\\\\assets\\\\bulma_confined.min.css\")], Dict{Any,Any}(\"changes\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\")],\"index\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\")]), WebIO.ConnectionPool(Channel{Any}(sz_max:32,sz_curr:0), Set{AbstractConnection}(), Base.GenericCondition{Base.AlwaysLockedST}(Base.InvasiveLinkedList{Task}(Task (runnable) @0x00000001b03b42f0, Task (runnable) @0x00000001b03b42f0), Base.AlwaysLockedST(1))), WebIO.JSString[WebIO.JSString(\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.0001\\\",\\\"0.001\\\",\\\"0.01\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"3700620698818825228\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"11777997649129443287\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"3700620698818825228\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"5631177491757017265\\\",\\\"id\\\":\\\"11777997649129443287\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\")])], Dict{Symbol,Any}(:className => \"field interact-widget\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Scope(Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :label), Any[\"σ\"], Dict{Symbol,Any}(:className => \"interact \",:style => Dict{Any,Any}(:padding => \"5px 10px 0px 10px\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-left\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :input), Any[], Dict{Symbol,Any}(:max => 2,:min => 1,:attributes => Dict{Any,Any}(:type => \"range\",Symbol(\"data-bind\") => \"numericValue: index, valueUpdate: 'input', event: {change: function (){this.changes(this.changes()+1)}}\",\"orient\" => \"horizontal\"),:step => 1,:className => \"slider slider is-fullwidth\",:style => Dict{Any,Any}()))], Dict{Symbol,Any}(:className => \"interact-flex-row-center\")), Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :p), Any[], Dict{Symbol,Any}(:attributes => Dict(\"data-bind\" => \"text: formatted_val\")))], Dict{Symbol,Any}(:className => \"interact-flex-row-right\"))], Dict{Symbol,Any}(:className => \"interact-flex-row interact-widget\")), Dict{String,Tuple{Observables.AbstractObservable,Union{Nothing, Bool}}}(\"changes\" => (Observable{Int64} with 1 listeners. Value:\n", | |
"0, nothing),\"index\" => (Observable{Any} with 2 listeners. Value:\n", | |
"1, nothing)), Set{String}(), nothing, Asset[Asset(\"js\", \"knockout\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout.js\"), Asset(\"js\", \"knockout_punches\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Knockout\\\\IP1uR\\\\src\\\\..\\\\assets\\\\knockout_punches.js\"), Asset(\"js\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\all.js\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\InteractBase\\\\Zfu5P\\\\src\\\\..\\\\assets\\\\style.css\"), Asset(\"css\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\Interact\\\\SbgIk\\\\src\\\\..\\\\assets\\\\bulma_confined.min.css\")], Dict{Any,Any}(\"changes\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"changes\\\"]()) ? (this.valueFromJulia[\\\"changes\\\"]=true, this.model[\\\"changes\\\"](val)) : undefined})\")],\"index\" => Any[WebIO.JSString(\"(function (val){return (val!=this.model[\\\"index\\\"]()) ? (this.valueFromJulia[\\\"index\\\"]=true, this.model[\\\"index\\\"](val)) : undefined})\")]), WebIO.ConnectionPool(Channel{Any}(sz_max:32,sz_curr:0), Set{AbstractConnection}(), Base.GenericCondition{Base.AlwaysLockedST}(Base.InvasiveLinkedList{Task}(Task (runnable) @0x00000001b03b5150, Task (runnable) @0x00000001b03b5150), Base.AlwaysLockedST(1))), WebIO.JSString[WebIO.JSString(\"function () {\\n var handler = (function (ko, koPunches) {\\n ko.punches.enableAll();\\n ko.bindingHandlers.numericValue = {\\n init: function(element, valueAccessor, allBindings, data, context) {\\n var stringified = ko.observable(ko.unwrap(valueAccessor()));\\n stringified.subscribe(function(value) {\\n var val = parseFloat(value);\\n if (!isNaN(val)) {\\n valueAccessor()(val);\\n }\\n });\\n valueAccessor().subscribe(function(value) {\\n var str = JSON.stringify(value);\\n if ((str == \\\"0\\\") && ([\\\"-0\\\", \\\"-0.\\\"].indexOf(stringified()) >= 0))\\n return;\\n if ([\\\"null\\\", \\\"\\\"].indexOf(str) >= 0)\\n return;\\n stringified(str);\\n });\\n ko.applyBindingsToNode(\\n element,\\n {\\n value: stringified,\\n valueUpdate: allBindings.get('valueUpdate'),\\n },\\n context,\\n );\\n }\\n };\\n var json_data = {\\\"formatted_vals\\\":[\\\"0.05\\\",\\\"0.5\\\"],\\\"changes\\\":WebIO.getval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"1457450686684836621\\\",\\\"type\\\":\\\"observable\\\"}),\\\"index\\\":WebIO.getval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"626500180970004959\\\",\\\"type\\\":\\\"observable\\\"})};\\n var self = this;\\n function AppViewModel() {\\n for (var key in json_data) {\\n var el = json_data[key];\\n this[key] = Array.isArray(el) ? ko.observableArray(el) : ko.observable(el);\\n }\\n \\n [this[\\\"formatted_val\\\"]=ko.computed( function(){\\n return this.formatted_vals()[parseInt(this.index())-(1)];\\n }\\n,this)]\\n [this[\\\"changes\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"changes\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"changes\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"1457450686684836621\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"changes\\\"]=false}),self),this[\\\"index\\\"].subscribe((function (val){!(this.valueFromJulia[\\\"index\\\"]) ? (WebIO.setval({\\\"name\\\":\\\"index\\\",\\\"scope\\\":\\\"12615857277584589604\\\",\\\"id\\\":\\\"626500180970004959\\\",\\\"type\\\":\\\"observable\\\"},val)) : undefined; return this.valueFromJulia[\\\"index\\\"]=false}),self)]\\n \\n }\\n self.model = new AppViewModel();\\n self.valueFromJulia = {};\\n for (var key in json_data) {\\n self.valueFromJulia[key] = false;\\n }\\n ko.applyBindings(self.model, self.dom);\\n}\\n);\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"knockout\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/80133f82293cee26d1735d34aed40afbbc0f7fda-knockout.js\\\"},{\\\"name\\\":\\\"knockout_punches\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/ec63fe3c2e63669d02ee7b7e80d1dc05684cd646-knockout_punches.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\")])], Dict{Symbol,Any}(:className => \"field interact-widget\")), Observable{Any} with 0 listeners. Value:\n", | |
"Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[PlotlyJS.SyncPlot(data: [\n", | |
" \"scatter with fields linewidth, name, type, x, and y\",\n", | |
" \"scatter with fields linewidth, name, type, x, and y\"\n", | |
"]\n", | |
"\n", | |
"layout: \"layout with field margin\"\n", | |
"\n", | |
", Scope(Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[], Dict{Symbol,Any}(:id => \"plot-66448816-25da-48b8-831b-279e4816df29\")), Dict{String,Tuple{Observables.AbstractObservable,Union{Nothing, Bool}}}(\"_toImage\" => (Observable{Dict{Any,Any}} with 1 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"hover\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"selected\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"__gd_contents\" => (Observable{Any} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"click\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"image\" => (Observable{String} with 1 listeners. Value:\n", | |
"\"\", nothing),\"__get_gd_contents\" => (Observable{String} with 1 listeners. Value:\n", | |
"\"\", nothing),\"_downloadImage\" => (Observable{Dict{Any,Any}} with 1 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"relayout\" => (Observable{Dict{Any,Any}} with 0 listeners. Value:\n", | |
"Dict{Any,Any}(), nothing),\"_commands\" => (Observable{Any} with 1 listeners. Value:\n", | |
"Any[], nothing)…), Set{String}(), nothing, Asset[Asset(\"js\", \"Plotly\", \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\PlotlyJS\\\\m2Lzd\\\\src\\\\..\\\\assets\\\\plotly-latest.min.js\"), Asset(\"js\", nothing, \"C:\\\\Users\\\\Sharan Yalburgi\\\\.julia\\\\packages\\\\PlotlyJS\\\\m2Lzd\\\\src\\\\..\\\\assets\\\\plotly_webio.bundle.js\")], Dict{Any,Any}(\"_toImage\" => Any[WebIO.JSString(\"(function (options){return this.Plotly.toImage(this.plotElem,options).then((function (data){return WebIO.setval({\\\"name\\\":\\\"image\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"10115380771835592724\\\",\\\"type\\\":\\\"observable\\\"},data)}))})\")],\"__get_gd_contents\" => Any[WebIO.JSString(\"(function (prop){prop==\\\"data\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"6497331153570625402\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.data)) : undefined; return prop==\\\"layout\\\" ? (WebIO.setval({\\\"name\\\":\\\"__gd_contents\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"6497331153570625402\\\",\\\"type\\\":\\\"observable\\\"},this.plotElem.layout)) : undefined})\")],\"_downloadImage\" => Any[WebIO.JSString(\"(function (options){return this.Plotly.downloadImage(this.plotElem,options)})\")],\"_commands\" => Any[WebIO.JSString(\"(function (args){var fn=args.shift(); var elem=this.plotElem; var Plotly=this.Plotly; args.unshift(elem); return Plotly[fn].apply(this,args)})\")]), WebIO.ConnectionPool(Channel{Any}(sz_max:32,sz_curr:0), Set{AbstractConnection}(), Base.GenericCondition{Base.AlwaysLockedST}(Base.InvasiveLinkedList{Task}(Task (runnable) @0x00000001b03b7c70, Task (runnable) @0x00000001b03b7c70), Base.AlwaysLockedST(1))), WebIO.JSString[WebIO.JSString(\"function () {\\n var handler = ((function (Plotly,PlotlyWebIO){PlotlyWebIO.init(WebIO); var gd=this.dom.querySelector(\\\"#plot-66448816-25da-48b8-831b-279e4816df29\\\"); this.plotElem=gd; this.Plotly=Plotly; (window.Blink!==undefined) ? (gd.style.width=\\\"100%\\\", gd.style.height=\\\"100vh\\\", gd.style.marginLeft=\\\"0%\\\", gd.style.marginTop=\\\"0vh\\\") : undefined; window.onresize=(function (){return Plotly.Plots.resize(gd)}); Plotly.newPlot(gd,[{\\\"y\\\":[0.93564453125,0.9556640625,0.9615234375,0.97001953125,0.97548828125,0.97744140625,0.97763671875,0.97744140625,0.97568359375,0.9751953125,0.97451171875,0.97490234375,0.9796875,0.9794921875,0.97744140625,0.97880859375,0.98173828125,0.9779296875,0.9787109375,0.98046875,0.98056640625,0.97998046875,0.9779296875,0.9818359375,0.98115234375,0.9802734375,0.980859375,0.979296875,0.98115234375,0.98154296875,0.9806640625,0.9814453125,0.98349609375,0.9818359375,0.98037109375,0.97958984375,0.98076171875,0.982421875,0.9822265625,0.981640625,0.98037109375,0.97919921875,0.98134765625,0.9830078125,0.9830078125,0.98232421875,0.9830078125,0.98369140625,0.98359375,0.9837890625,0.9837890625,0.98388671875,0.98388671875,0.98388671875,0.98408203125,0.98408203125,0.98408203125,0.98408203125,0.984375,0.98447265625,0.98447265625,0.984375,0.984375,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9845703125,0.98447265625,0.9845703125,0.98447265625,0.98447265625,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.98466796875,0.9845703125,0.98447265625,0.9845703125,0.9845703125,0.9845703125,0.9845703125,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.98447265625,0.9841796875,0.98447265625,0.984375],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"test\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]},{\\\"y\\\":[0.9358266843971632,0.9585106382978723,0.9682402482269504,0.9771830673758866,0.9846077127659575,0.9878490691489362,0.9901429521276596,0.9899268617021276,0.9897273936170212,0.9911236702127659,0.9914727393617021,0.9911402925531915,0.996592420212766,0.9966755319148937,0.99609375,0.9972739361702128,0.9979222074468085,0.9979720744680851,0.9975066489361702,0.9982878989361702,0.9985704787234042,0.9981050531914893,0.9966755319148937,0.9985206117021277,0.9986037234042553,0.9992353723404256,0.9991688829787234,0.9983045212765957,0.99921875,0.9990026595744681,0.9981881648936171,0.9993018617021276,0.9994514627659574,0.9990026595744681,0.9989860372340426,0.9975731382978723,0.9993018617021276,0.9997340425531915,0.9997340425531915,0.9992353723404256,0.99921875,0.9973071808510638,0.9991190159574468,0.9998171542553191,0.9993849734042554,0.9998337765957447,0.9999833776595745,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\\\"type\\\":\\\"scatter\\\",\\\"name\\\":\\\"train\\\",\\\"linewidth\\\":0.5,\\\"x\\\":[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,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]}],{\\\"margin\\\":{\\\"l\\\":50,\\\"b\\\":50,\\\"r\\\":50,\\\"t\\\":60}},{}); gd.on(\\\"plotly_hover\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"hover\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"1604814652504308591\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_unhover\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"hover\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"1604814652504308591\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_selected\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"selected\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"16506455463898317743\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); gd.on(\\\"plotly_deselect\\\",(function (){return WebIO.setval({\\\"name\\\":\\\"selected\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"16506455463898317743\\\",\\\"type\\\":\\\"observable\\\"},{})})); gd.on(\\\"plotly_relayout\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"relayout\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"relayout\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"8386376565731521516\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined})); return gd.on(\\\"plotly_click\\\",(function (data){var filtered_data=WebIO.PlotlyCommands.filterEventData(gd,data,\\\"click\\\"); return !(filtered_data.isnil) ? (WebIO.setval({\\\"name\\\":\\\"click\\\",\\\"scope\\\":\\\"2845923228676453660\\\",\\\"id\\\":\\\"2972377240707377890\\\",\\\"type\\\":\\\"observable\\\"},filtered_data.out)) : undefined}))}));\\n (WebIO.importBlock({\\\"data\\\":[{\\\"name\\\":\\\"Plotly\\\",\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/80e93471f280df210a5c6dda4a2b36fc829d3066-plotly-latest.min.js\\\"},{\\\"name\\\":null,\\\"type\\\":\\\"js\\\",\\\"url\\\":\\\"/assetserver/24f578911c07b6875768cb9a43d8547041c65d4e-plotly_webio.bundle.js\\\"}],\\\"type\\\":\\\"async_block\\\"})).then((imports) => handler.apply(this, imports));\\n}\\n\")]), Dict{Any,Any}(), nothing)], Dict{Symbol,Any}(:className => \"interact-flex-row interact-widget\"))], Dict{Symbol,Any}())" | |
] | |
}, | |
"execution_count": 46, | |
"metadata": { | |
"application/vnd.webio.node+json": { | |
"kernelId": "3309d807-07e1-438f-baaa-a9d0df7f1c22" | |
} | |
}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"Interact.@manipulate for ϵ=widget([10.0^i for i in (-4):(-2)], label=\"ϵ\"), σ=widget([5*10.0^i for i in (-2):(-1)], label=\"σ\")\n", | |
"# plt = Plots.plot()\n", | |
" plt = PlotlyJS.Plot([\n", | |
" PlotlyJS.scatter(;x=1:length(results[0.5][ϵ].test_acc), y=results[0.5][ϵ].test_acc, name=\"test\", linewidth=0.5),\n", | |
" PlotlyJS.scatter(;x=1:length(results[0.5][ϵ].train_acc), y=results[0.5][ϵ].train_acc, name=\"train\", linewidth=0.5)\n", | |
" ])\n", | |
"# Plots.plot!(plt, 1:length(results[σ][ϵ].test_acc), results[σ][ϵ].test_acc, label=\"test\", linewidth=0.5)\n", | |
"# Plots.plot!(plt, 1:length(results[σ][ϵ].train_acc), results[σ][ϵ].train_acc, label=\"train\", linewidth=0.5)\n", | |
" PlotlyJS.plot(plt)\n", | |
"end" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import Pkg; Pkg.add(\"WebIO\")\n", | |
"import WebIO\n", | |
"cd(joinpath(dirname(pathof(WebIO)), \"..\", \"assets\"))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"# using Pkg\n", | |
"# cd(joinpath(dirname(pathof(WebIO)), \"assets\"))\n", | |
";jupyter labextension install webio\n", | |
";jupyter labextension enable webio/jupyterlab_entry" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"ϵ_slider = slider([10.0^i for i in (-4):(-2)], value=0.01, label=\"ϵ\") \n", | |
"# σ_slider = slider([5*10.0^i for i in (-2):(-1)], value=0.5, label=\"σ\") \n", | |
"\n", | |
"@demo for ϵ in ϵ_slider#, σ in σ_slider\n", | |
" SimplePlots.plot!(;x=1:length(results[0.5][ϵ].test_acc), y=results[0.5][ϵ].test_acc, label=\"test\", linewidth=0.5)\n", | |
" SimplePlots.plot!(;x=1:length(results[0.5][ϵ].train_acc), y=results[0.5][ϵ].train_acc, label=\"train\", linewidth=0.5)\n", | |
"end" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"@webio": { | |
"lastCommId": "f38918d57f81452f915baaee0eb6fbf9", | |
"lastKernelId": "3309d807-07e1-438f-baaa-a9d0df7f1c22" | |
}, | |
"kernelspec": { | |
"display_name": "Julia 1.5.3", | |
"language": "julia", | |
"name": "julia-1.5" | |
}, | |
"language_info": { | |
"file_extension": ".jl", | |
"mimetype": "application/julia", | |
"name": "julia", | |
"version": "1.5.3" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment