diff options
Diffstat (limited to 'layouts/shortcodes/tune-loss.html')
-rw-r--r-- | layouts/shortcodes/tune-loss.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/layouts/shortcodes/tune-loss.html b/layouts/shortcodes/tune-loss.html new file mode 100644 index 0000000..f801b5c --- /dev/null +++ b/layouts/shortcodes/tune-loss.html @@ -0,0 +1,43 @@ + + +<style> + +</style> + +<div id="fig_el7573761403879198102883992094766"></div> +<script> +function mpld3_load_lib(url, callback){ + var s = document.createElement('script'); + s.src = url; + s.async = true; + s.onreadystatechange = s.onload = callback; + s.onerror = function(){console.warn("failed to load library " + url);}; + document.getElementsByTagName("head")[0].appendChild(s); +} + +if(typeof(mpld3) !== "undefined" && mpld3._mpld3IsLoaded){ + // already loaded: just create the figure + !function(mpld3){ + + mpld3.draw_figure("fig_el7573761403879198102883992094766", {"width": 640.0, "height": 480.0, "axes": [{"bbox": [0.125, 0.10999999999999999, 0.775, 0.77], "xlim": [-2.45, 51.45], "ylim": [-4.023941852897406, 0.3247999183833599], "xdomain": [-2.45, 51.45], "ydomain": [-4.023941852897406, 0.3247999183833599], "xscale": "linear", "yscale": "linear", "axes": [{"position": "bottom", "nticks": 8, "tickvalues": null, "tickformat_formatter": "", "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": false}, "visible": true}, {"position": "left", "nticks": 11, "tickvalues": null, "tickformat_formatter": "", "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": false}, "visible": true}], "axesbg": "#FFFFFF", "axesbgalpha": null, "zoomable": true, "id": "el757376140387714206848", "lines": [{"data": "data01", "xindex": 0, "yindex": 1, "coordinates": "data", "id": "el757376140387841462432", "color": "#0000FF", "linewidth": 1.5, "dasharray": "none", "alpha": 1, "zorder": 2, "drawstyle": "default"}], "paths": [], "markers": [], "texts": [{"text": "Epochs", "position": [0.5, -0.07921476671476674], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "hanging", "rotation": -0.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387714211216"}, {"text": "Log MSE", "position": [-0.0985943100358423, 0.5], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -90.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387714204448"}, {"text": "Fine-tune Loss", "position": [0.5, 1.0225468975468974], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -0.0, "fontsize": 12.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387886095520"}], "collections": [], "images": [], "sharex": [], "sharey": []}], "data": {"data01": [[0.0, -0.5529061555862427], [1.0, 0.00582094257697463], [2.0, 0.12712983787059784], [3.0, -0.6931543350219727], [4.0, -0.6789501309394836], [5.0, -0.7886176705360413], [6.0, -1.194624662399292], [7.0, -0.8660245537757874], [8.0, -0.32105493545532227], [9.0, -0.5563544631004333], [10.0, -1.1614649295806885], [11.0, -0.6834737658500671], [12.0, -1.4866312742233276], [13.0, -0.8663621544837952], [14.0, -1.8159927129745483], [15.0, -1.2742594480514526], [16.0, -1.1336743831634521], [17.0, -1.9043149948120117], [18.0, -1.6900967359542847], [19.0, -1.6131829023361206], [20.0, -1.7646479606628418], [21.0, -1.9197150468826294], [22.0, -1.9860000610351562], [23.0, -1.885329008102417], [24.0, -2.0404014587402344], [25.0, -2.3226630687713623], [26.0, -2.476088047027588], [27.0, -2.53680157661438], [28.0, -2.459334135055542], [29.0, -2.6285030841827393], [30.0, -2.673304557800293], [31.0, -2.660975456237793], [32.0, -2.8099002838134766], [33.0, -2.911806583404541], [34.0, -3.0064892768859863], [35.0, -3.1329269409179688], [36.0, -3.1932780742645264], [37.0, -3.277862548828125], [38.0, -3.2337965965270996], [39.0, -3.2325751781463623], [40.0, -3.389988660812378], [41.0, -3.4854423999786377], [42.0, -3.446497678756714], [43.0, -3.555500030517578], [44.0, -3.621767997741699], [45.0, -3.686537504196167], [46.0, -3.7084803581237793], [47.0, -3.6845247745513916], [48.0, -3.8262717723846436], [49.0, -3.8219897747039795]]}, "id": "el757376140387919810288", "plugins": [{"type": "reset"}, {"type": "zoom", "button": true, "enabled": false}, {"type": "boxzoom", "button": true, "enabled": false}]}); + }(mpld3); +}else if(typeof define === "function" && define.amd){ + // require.js is available: use it to load d3/mpld3 + require.config({paths: {d3: "https://d3js.org/d3.v5"}}); + require(["d3"], function(d3){ + window.d3 = d3; + mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.5.10.js", function(){ + + mpld3.draw_figure("fig_el7573761403879198102883992094766", {"width": 640.0, "height": 480.0, "axes": [{"bbox": [0.125, 0.10999999999999999, 0.775, 0.77], "xlim": [-2.45, 51.45], "ylim": [-4.023941852897406, 0.3247999183833599], "xdomain": [-2.45, 51.45], "ydomain": [-4.023941852897406, 0.3247999183833599], "xscale": "linear", "yscale": "linear", "axes": [{"position": "bottom", "nticks": 8, "tickvalues": null, "tickformat_formatter": "", "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": false}, "visible": true}, {"position": "left", "nticks": 11, "tickvalues": null, "tickformat_formatter": "", "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": false}, "visible": true}], "axesbg": "#FFFFFF", "axesbgalpha": null, "zoomable": true, "id": "el757376140387714206848", "lines": [{"data": "data01", "xindex": 0, "yindex": 1, "coordinates": "data", "id": "el757376140387841462432", "color": "#0000FF", "linewidth": 1.5, "dasharray": "none", "alpha": 1, "zorder": 2, "drawstyle": "default"}], "paths": [], "markers": [], "texts": [{"text": "Epochs", "position": [0.5, -0.07921476671476674], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "hanging", "rotation": -0.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387714211216"}, {"text": "Log MSE", "position": [-0.0985943100358423, 0.5], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -90.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387714204448"}, {"text": "Fine-tune Loss", "position": [0.5, 1.0225468975468974], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -0.0, "fontsize": 12.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387886095520"}], "collections": [], "images": [], "sharex": [], "sharey": []}], "data": {"data01": [[0.0, -0.5529061555862427], [1.0, 0.00582094257697463], [2.0, 0.12712983787059784], [3.0, -0.6931543350219727], [4.0, -0.6789501309394836], [5.0, -0.7886176705360413], [6.0, -1.194624662399292], [7.0, -0.8660245537757874], [8.0, -0.32105493545532227], [9.0, -0.5563544631004333], [10.0, -1.1614649295806885], [11.0, -0.6834737658500671], [12.0, -1.4866312742233276], [13.0, -0.8663621544837952], [14.0, -1.8159927129745483], [15.0, -1.2742594480514526], [16.0, -1.1336743831634521], [17.0, -1.9043149948120117], [18.0, -1.6900967359542847], [19.0, -1.6131829023361206], [20.0, -1.7646479606628418], [21.0, -1.9197150468826294], [22.0, -1.9860000610351562], [23.0, -1.885329008102417], [24.0, -2.0404014587402344], [25.0, -2.3226630687713623], [26.0, -2.476088047027588], [27.0, -2.53680157661438], [28.0, -2.459334135055542], [29.0, -2.6285030841827393], [30.0, -2.673304557800293], [31.0, -2.660975456237793], [32.0, -2.8099002838134766], [33.0, -2.911806583404541], [34.0, -3.0064892768859863], [35.0, -3.1329269409179688], [36.0, -3.1932780742645264], [37.0, -3.277862548828125], [38.0, -3.2337965965270996], [39.0, -3.2325751781463623], [40.0, -3.389988660812378], [41.0, -3.4854423999786377], [42.0, -3.446497678756714], [43.0, -3.555500030517578], [44.0, -3.621767997741699], [45.0, -3.686537504196167], [46.0, -3.7084803581237793], [47.0, -3.6845247745513916], [48.0, -3.8262717723846436], [49.0, -3.8219897747039795]]}, "id": "el757376140387919810288", "plugins": [{"type": "reset"}, {"type": "zoom", "button": true, "enabled": false}, {"type": "boxzoom", "button": true, "enabled": false}]}); + }); + }); +}else{ + // require.js not available: dynamically load d3 & mpld3 + mpld3_load_lib("https://d3js.org/d3.v5.js", function(){ + mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.5.10.js", function(){ + + mpld3.draw_figure("fig_el7573761403879198102883992094766", {"width": 640.0, "height": 480.0, "axes": [{"bbox": [0.125, 0.10999999999999999, 0.775, 0.77], "xlim": [-2.45, 51.45], "ylim": [-4.023941852897406, 0.3247999183833599], "xdomain": [-2.45, 51.45], "ydomain": [-4.023941852897406, 0.3247999183833599], "xscale": "linear", "yscale": "linear", "axes": [{"position": "bottom", "nticks": 8, "tickvalues": null, "tickformat_formatter": "", "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": false}, "visible": true}, {"position": "left", "nticks": 11, "tickvalues": null, "tickformat_formatter": "", "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": false}, "visible": true}], "axesbg": "#FFFFFF", "axesbgalpha": null, "zoomable": true, "id": "el757376140387714206848", "lines": [{"data": "data01", "xindex": 0, "yindex": 1, "coordinates": "data", "id": "el757376140387841462432", "color": "#0000FF", "linewidth": 1.5, "dasharray": "none", "alpha": 1, "zorder": 2, "drawstyle": "default"}], "paths": [], "markers": [], "texts": [{"text": "Epochs", "position": [0.5, -0.07921476671476674], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "hanging", "rotation": -0.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387714211216"}, {"text": "Log MSE", "position": [-0.0985943100358423, 0.5], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -90.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387714204448"}, {"text": "Fine-tune Loss", "position": [0.5, 1.0225468975468974], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -0.0, "fontsize": 12.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el757376140387886095520"}], "collections": [], "images": [], "sharex": [], "sharey": []}], "data": {"data01": [[0.0, -0.5529061555862427], [1.0, 0.00582094257697463], [2.0, 0.12712983787059784], [3.0, -0.6931543350219727], [4.0, -0.6789501309394836], [5.0, -0.7886176705360413], [6.0, -1.194624662399292], [7.0, -0.8660245537757874], [8.0, -0.32105493545532227], [9.0, -0.5563544631004333], [10.0, -1.1614649295806885], [11.0, -0.6834737658500671], [12.0, -1.4866312742233276], [13.0, -0.8663621544837952], [14.0, -1.8159927129745483], [15.0, -1.2742594480514526], [16.0, -1.1336743831634521], [17.0, -1.9043149948120117], [18.0, -1.6900967359542847], [19.0, -1.6131829023361206], [20.0, -1.7646479606628418], [21.0, -1.9197150468826294], [22.0, -1.9860000610351562], [23.0, -1.885329008102417], [24.0, -2.0404014587402344], [25.0, -2.3226630687713623], [26.0, -2.476088047027588], [27.0, -2.53680157661438], [28.0, -2.459334135055542], [29.0, -2.6285030841827393], [30.0, -2.673304557800293], [31.0, -2.660975456237793], [32.0, -2.8099002838134766], [33.0, -2.911806583404541], [34.0, -3.0064892768859863], [35.0, -3.1329269409179688], [36.0, -3.1932780742645264], [37.0, -3.277862548828125], [38.0, -3.2337965965270996], [39.0, -3.2325751781463623], [40.0, -3.389988660812378], [41.0, -3.4854423999786377], [42.0, -3.446497678756714], [43.0, -3.555500030517578], [44.0, -3.621767997741699], [45.0, -3.686537504196167], [46.0, -3.7084803581237793], [47.0, -3.6845247745513916], [48.0, -3.8262717723846436], [49.0, -3.8219897747039795]]}, "id": "el757376140387919810288", "plugins": [{"type": "reset"}, {"type": "zoom", "button": true, "enabled": false}, {"type": "boxzoom", "button": true, "enabled": false}]}); + }) + }); +} +</script>
\ No newline at end of file |