StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.9 KiB
1 line
5.9 KiB
4 years ago
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vega-dataflow"),require("vega-util")):"function"==typeof define&&define.amd?define(["exports","vega-dataflow","vega-util"],e):e((t=t||self).vega={},t.vega,t.vega)}(this,function(t,e,n){"use strict";function r(t,e,n){";"!==e[e.length-1]&&(e="return("+e+");");var r=Function.apply(null,t.concat(e));return n&&n.functions?r.bind(n.functions):r}function a(t,e){return r(["event"],t,e)}function o(t,e){return r(["item","_"],t,e)}function s(t,e,r){var a,o;for(a in r=r||{},t)o=t[a],r[a]=n.isArray(o)?o.map(function(t){return i(t,e,r)}):i(o,e,r);return r}function i(t,e,r){if(!t||!n.isObject(t))return t;for(var a,o=0,s=u.length;o<s;++o)if(a=u[o],n.hasOwnProperty(t,a.key))return a.parse(t,e,r);return t}var u=[{key:"$ref",parse:function(t,e){return e.get(t.$ref)||n.error("Operator not defined: "+t.$ref)}},{key:"$key",parse:function(t,e){var r="k:"+t.$key+"_"+!!t.$flat;return e.fn[r]||(e.fn[r]=n.key(t.$key,t.$flat))}},{key:"$expr",parse:function(t,e,a){t.$params&&s(t.$params,e,a);var o="e:"+t.$expr+"_"+t.$name;return e.fn[o]||(e.fn[o]=n.accessor(function(t,e){return r(["datum","_"],t,e)}(t.$expr,e),t.$fields,t.$name))}},{key:"$field",parse:function(t,e){if(!t.$field)return null;var r="f:"+t.$field+"_"+t.$name;return e.fn[r]||(e.fn[r]=n.field(t.$field,t.$name))}},{key:"$encode",parse:function(t,e){var r,a,s=t.$encode,i={};for(r in s)a=s[r],i[r]=n.accessor(o(a.$expr,e),a.$fields),i[r].output=a.$output;return i}},{key:"$compare",parse:function(t,r){var a="c:"+t.$compare+"_"+t.$order,o=n.array(t.$compare).map(function(t){return t&&t.$tupleid?e.tupleid:t});return r.fn[a]||(r.fn[a]=n.compare(o,t.$order))}},{key:"$context",parse:function(t,e){return e}},{key:"$subflow",parse:function(t,e){var n=t.$subflow;return function(t,r,a){var o=l(n,e.fork()),s=o.get(n.operators[0].id),i=o.signals.parent;return i&&i.set(a),s}}},{key:"$tupleid",parse:function(){return e.tupleid}}];function f(t){return(t+"").toLowerCase()}function c(t,e){"operator"!==f(t.type)&&t.type?e.transform(t,t.type):e.operator(t,t.update?function(t,e){return r(["_"],t,e)}(t.update,e):null)}function d(t,e){var o=n.isObject(o=t.source)?o.$ref:o,i=e.get(o),u=null,f=t.update,c=void 0;i||n.error("Source not defined: "+t.source),u=t.target&&t.target.$expr?a(t.target.$expr,e):e.get(t.target),f&&f.$expr&&(f.$params&&(c=s(f.$params,e)),f=function(t,e){return r(["_","event"],t,e)}(f.$expr,e)),e.update(t,i,u,f,c)}function l(t,e){var r=t.operators||[];return t.background&&(e.background=t.background),t.eventConfig&&(e.eventConfig=t.eventConfig),r.forEach(function(t){c(t,e)}),r.forEach(function(t){!function(t,e){if(t.params){var r=e.get(t.id);r||n.error("Invalid operator id: "+t.id),e.dataflow.connect(r,r.parameters(s(t.params,e),t.react,t.initonly))}}(t,e)}),(t.streams||[]).forEach(function(t){!function(t,e){var r,o=null!=t.filter?a(t.filter,e):void 0,s=null!=t.stream?e.get(t.stream):void 0;t.source?s=e.events(t.source,t.type,o):t.merge&&(s=(r=t.merge.map(e.get.bind(e)))[0].merge.apply(r[0],r.slice(1))),t.between&&(r=t.between.map(e.get.bind(e)),s=s.between(r[0],r[1])),t.filter&&(s=s.filter(o)),null!=t.throttle&&(s=s.throttle(+t.throttle)),null!=t.debounce&&(s=s.debounce(+t.debounce)),null==s&&n.error("Invalid stream definition: "+JSON.stringify(t)),t.consume&&s.consume(!0),e.stream(t,s)}(t,e)}),(t.updates||[]).forEach(function(t){d(t,e)}),e.resolve()}var p={skip:!0};function h(t,e,n){this.dataflow=t,this.transforms=e,this.events=t.events.bind(t),this.signals={},this.scales={},this.nodes={},this.data={},this.fn={},n&&(this.functions=Object.create(n),this.functions.context=this)}function v(t){this.dataflow=t.dataflow,this.transforms=t.transforms,this.functions=t.functions,this.events=t.events,this.signals=Object.create(t.signals),this.scales=Object.create(t.scales),this.nodes=Object.create(t.nodes),this.data=Object.create(t.data),this.fn=Object.create(t.fn),t.functions&&(this.functions=Object.create(t.functions),this.functions.context=this)}h.prototype=v.prototype={fork:function(){var t=new v(this);return(this.s
|