madlag's picture
Adding model, graphs and metadata.
4af4ba5
(function() {
var fn = function() {
(function(root) {
function now() {
return new Date();
}
var force = false;
if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) {
root._bokeh_onload_callbacks = [];
root._bokeh_is_loading = undefined;
}
var element = document.getElementById("d74872e0-a89c-4ce0-b0fa-1c5709b67cd9");
if (element == null) {
console.warn("Bokeh: autoload.js configured with elementid 'd74872e0-a89c-4ce0-b0fa-1c5709b67cd9' but no matching script tag was found.")
}
function run_callbacks() {
try {
root._bokeh_onload_callbacks.forEach(function(callback) {
if (callback != null)
callback();
});
} finally {
delete root._bokeh_onload_callbacks
}
console.debug("Bokeh: all callbacks have finished");
}
function load_libs(css_urls, js_urls, callback) {
if (css_urls == null) css_urls = [];
if (js_urls == null) js_urls = [];
root._bokeh_onload_callbacks.push(callback);
if (root._bokeh_is_loading > 0) {
console.debug("Bokeh: BokehJS is being loaded, scheduling callback at", now());
return null;
}
if (js_urls == null || js_urls.length === 0) {
run_callbacks();
return null;
}
console.debug("Bokeh: BokehJS not loaded, scheduling load and callback at", now());
root._bokeh_is_loading = css_urls.length + js_urls.length;
function on_load() {
root._bokeh_is_loading--;
if (root._bokeh_is_loading === 0) {
console.debug("Bokeh: all BokehJS libraries/stylesheets loaded");
run_callbacks()
}
}
function on_error() {
console.error("failed to load " + url);
}
for (var i = 0; i < css_urls.length; i++) {
var url = css_urls[i];
const element = document.createElement("link");
element.onload = on_load;
element.onerror = on_error;
element.rel = "stylesheet";
element.type = "text/css";
element.href = url;
console.debug("Bokeh: injecting link tag for BokehJS stylesheet: ", url);
document.body.appendChild(element);
}
const hashes = {"https://cdn.bokeh.org/bokeh/release/bokeh-2.2.3.min.js": "T2yuo9Oe71Cz/I4X9Ac5+gpEa5a8PpJCDlqKYO0CfAuEszu1JrXLl8YugMqYe3sM", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.2.3.min.js": "98GDGJ0kOMCUMUePhksaQ/GYgB3+NH9h996V88sh3aOiUNX3N+fLXAtry6xctSZ6", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.2.3.min.js": "89bArO+nlbP3sgakeHjCo1JYxYR5wufVgA3IbUvDY+K7w4zyxJqssu7wVnfeKCq8"};
for (var i = 0; i < js_urls.length; i++) {
var url = js_urls[i];
var element = document.createElement('script');
element.onload = on_load;
element.onerror = on_error;
element.async = false;
element.src = url;
if (url in hashes) {
element.crossOrigin = "anonymous";
element.integrity = "sha384-" + hashes[url];
}
console.debug("Bokeh: injecting script tag for BokehJS library: ", url);
document.head.appendChild(element);
}
};
function inject_raw_css(css) {
const element = document.createElement("style");
element.appendChild(document.createTextNode(css));
document.body.appendChild(element);
}
var js_urls = ["https://cdn.bokeh.org/bokeh/release/bokeh-2.2.3.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.2.3.min.js", "https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.2.3.min.js"];
var css_urls = [];
var inline_js = [
function(Bokeh) {
Bokeh.set_log_level("info");
},
function(Bokeh) {
(function() {
var fn = function() {
Bokeh.safely(function() {
(function(root) {
function embed_document(root) {
var docs_json = '{"4085264b-48f2-4e05-824e-e5f726cbeae2":{"roots":{"references":[{"attributes":{},"id":"1715","type":"UnionRenderers"},{"attributes":{},"id":"1688","type":"CategoricalScale"},{"attributes":{"fields":[]},"id":"1700","type":"Stack"},{"attributes":{"items":[{"id":"1718"},{"id":"1734"}],"location":null},"id":"1717","type":"Legend"},{"attributes":{"source":{"id":"1704"}},"id":"1709","type":"CDSView"},{"attributes":{"factors":["0","1","2","3","4","5","6","7","8","9","10","11"],"range_padding":0.1},"id":"1684","type":"FactorRange"},{"attributes":{},"id":"1716","type":"Selection"},{"attributes":{"data_source":{"id":"1719"},"glyph":{"id":"1721"},"hover_glyph":null,"muted_glyph":null,"name":"pruned","nonselection_glyph":{"id":"1722"},"selection_glyph":null,"view":{"id":"1724"}},"id":"1723","type":"GlyphRenderer"},{"attributes":{"label":{"value":"active"},"renderers":[{"id":"1708"}]},"id":"1718","type":"LegendItem"},{"attributes":{},"id":"1714","type":"CategoricalTickFormatter"},{"attributes":{"bottom":{"expr":{"id":"1700"}},"fill_alpha":{"value":0.1},"fill_color":{"value":"#0000ff"},"line_alpha":{"value":0.1},"line_color":{"value":"#0000ff"},"top":{"expr":{"id":"1701"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1707","type":"VBar"},{"attributes":{"bottom":{"expr":{"id":"1702"}},"fill_color":{"value":"#ffcccc"},"line_color":{"value":"#ffcccc"},"top":{"expr":{"id":"1703"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1721","type":"VBar"},{"attributes":{"bottom":{"expr":{"id":"1702"}},"fill_alpha":{"value":0.1},"fill_color":{"value":"#ffcccc"},"line_alpha":{"value":0.1},"line_color":{"value":"#ffcccc"},"top":{"expr":{"id":"1703"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1722","type":"VBar"},{"attributes":{"fields":["active","pruned"]},"id":"1703","type":"Stack"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1723"}]},"id":"1734","type":"LegendItem"},{"attributes":{"fields":["active"]},"id":"1702","type":"Stack"},{"attributes":{"text":"Pruned Transformer Heads"},"id":"1682","type":"Title"},{"attributes":{"fields":["active"]},"id":"1701","type":"Stack"},{"attributes":{"source":{"id":"1719"}},"id":"1724","type":"CDSView"},{"attributes":{"bottom":{"expr":{"id":"1700"}},"fill_color":{"value":"#0000ff"},"line_color":{"value":"#0000ff"},"top":{"expr":{"id":"1701"}},"width":{"value":0.9},"x":{"field":"layers"}},"id":"1706","type":"VBar"},{"attributes":{},"id":"1693","type":"CategoricalTicker"},{"attributes":{"data":{"active":[7,5,9,9,10,7,9,7,9,6,5,6],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,2,5,3,5,3,6,7,6]},"selected":{"id":"1733"},"selection_policy":{"id":"1732"}},"id":"1719","type":"ColumnDataSource"},{"attributes":{"start":0},"id":"1686","type":"DataRange1d"},{"attributes":{"axis":{"id":"1692"},"grid_line_color":null,"ticker":null},"id":"1694","type":"Grid"},{"attributes":{"above":[{"id":"1735"}],"below":[{"id":"1692"}],"center":[{"id":"1694"},{"id":"1698"},{"id":"1717"}],"left":[{"id":"1695"}],"outline_line_color":null,"plot_height":400,"renderers":[{"id":"1708"},{"id":"1723"}],"title":{"id":"1682"},"toolbar":{"id":"1699"},"toolbar_location":null,"x_range":{"id":"1684"},"x_scale":{"id":"1688"},"y_range":{"id":"1686"},"y_scale":{"id":"1690"}},"id":"1681","subtype":"Figure","type":"Plot"},{"attributes":{"label":{"value":"pruned"},"renderers":[{"id":"1723"}]},"id":"1737","type":"LegendItem"},{"attributes":{"label":{"value":"active"},"renderers":[{"id":"1708"}]},"id":"1736","type":"LegendItem"},{"attributes":{},"id":"1696","type":"BasicTicker"},{"attributes":{"data":{"active":[7,5,9,9,10,7,9,7,9,6,5,6],"layers":["0","1","2","3","4","5","6","7","8","9","10","11"],"pruned":[5,7,3,3,2,5,3,5,3,6,7,6]},"selected":{"id":"1716"},"selection_policy":{"id":"1715"}},"id":"1704","type":"ColumnDataSource"},{"attributes":{},"id":"1733","type":"Selection"},{"attributes":{"axis_label":"Layer index","formatter":{"id":"1714"},"minor_tick_line_color":null,"ticker":{"id":"1693"}},"id":"1692","type":"CategoricalAxis"},{"attributes":{"axis_label":"Heads count","formatter":{"id":"1712"},"minor_tick_line_color":null,"ticker":{"id":"1696"}},"id":"1695","type":"LinearAxis"},{"attributes":{},"id":"1690","type":"LinearScale"},{"attributes":{"axis":{"id":"1695"},"dimension":1,"ticker":null},"id":"1698","type":"Grid"},{"attributes":{},"id":"1712","type":"BasicTickFormatter"},{"attributes":{"items":[{"id":"1736"},{"id":"1737"}],"location":[10,0],"orientation":"horizontal"},"id":"1735","type":"Legend"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto"},"id":"1699","type":"Toolbar"},{"attributes":{"data_source":{"id":"1704"},"glyph":{"id":"1706"},"hover_glyph":null,"muted_glyph":null,"name":"active","nonselection_glyph":{"id":"1707"},"selection_glyph":null,"view":{"id":"1709"}},"id":"1708","type":"GlyphRenderer"},{"attributes":{},"id":"1732","type":"UnionRenderers"}],"root_ids":["1681"]},"title":"Bokeh Application","version":"2.2.3"}}';
var render_items = [{"docid":"4085264b-48f2-4e05-824e-e5f726cbeae2","root_ids":["1681"],"roots":{"1681":"d74872e0-a89c-4ce0-b0fa-1c5709b67cd9"}}];
root.Bokeh.embed.embed_items(docs_json, render_items);
}
if (root.Bokeh !== undefined) {
embed_document(root);
} else {
var attempts = 0;
var timer = setInterval(function(root) {
if (root.Bokeh !== undefined) {
clearInterval(timer);
embed_document(root);
} else {
attempts++;
if (attempts > 100) {
clearInterval(timer);
console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");
}
}
}, 10, root)
}
})(window);
});
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();
},
function(Bokeh) {
}
];
function run_inline_js() {
for (var i = 0; i < inline_js.length; i++) {
inline_js[i].call(root, root.Bokeh);
}
}
if (root._bokeh_is_loading === 0) {
console.debug("Bokeh: BokehJS loaded, going straight to plotting");
run_inline_js();
} else {
load_libs(css_urls, js_urls, function() {
console.debug("Bokeh: BokehJS plotting callback run at", now());
run_inline_js();
});
}
}(window));
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();