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.
31 lines
939 B
31 lines
939 B
4 years ago
|
import Vue from 'vue';
|
||
|
export const noop = () => { };
|
||
|
const fakeArray = { __proto__: [] };
|
||
|
export const hasProto = fakeArray instanceof Array;
|
||
|
export function createDecorator(factory) {
|
||
|
return (target, key, index) => {
|
||
|
const Ctor = typeof target === 'function'
|
||
|
? target
|
||
|
: target.constructor;
|
||
|
if (!Ctor.__decorators__) {
|
||
|
Ctor.__decorators__ = [];
|
||
|
}
|
||
|
if (typeof index !== 'number') {
|
||
|
index = undefined;
|
||
|
}
|
||
|
Ctor.__decorators__.push(options => factory(options, key, index));
|
||
|
};
|
||
|
}
|
||
|
export function mixins(...Ctors) {
|
||
|
return Vue.extend({ mixins: Ctors });
|
||
|
}
|
||
|
export function isPrimitive(value) {
|
||
|
const type = typeof value;
|
||
|
return value == null || (type !== 'object' && type !== 'function');
|
||
|
}
|
||
|
export function warn(message) {
|
||
|
if (typeof console !== 'undefined') {
|
||
|
console.warn('[vue-class-component] ' + message);
|
||
|
}
|
||
|
}
|