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.
71 lines
3.4 KiB
71 lines
3.4 KiB
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
|
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
|
|
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
|
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
|
|
import Vue from '../../utils/vue';
|
|
import { mergeData } from 'vue-functional-data-merge';
|
|
import prefixPropName from '../../utils/prefix-prop-name';
|
|
import copyProps from '../../utils/copy-props';
|
|
import pluckProps from '../../utils/pluck-props';
|
|
import cardMixin from '../../mixins/card';
|
|
import { BCardTitle, props as titleProps } from './card-title';
|
|
import { BCardSubTitle, props as subTitleProps } from './card-sub-title';
|
|
export var props = _objectSpread({}, copyProps(cardMixin.props, prefixPropName.bind(null, 'body')), {
|
|
bodyClass: {
|
|
type: [String, Object, Array],
|
|
default: null
|
|
}
|
|
}, titleProps, {}, subTitleProps, {
|
|
overlay: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
}); // @vue/component
|
|
|
|
export var BCardBody =
|
|
/*#__PURE__*/
|
|
Vue.extend({
|
|
name: 'BCardBody',
|
|
functional: true,
|
|
props: props,
|
|
render: function render(h, _ref) {
|
|
var _ref2;
|
|
|
|
var props = _ref.props,
|
|
data = _ref.data,
|
|
children = _ref.children;
|
|
var cardTitle = h();
|
|
var cardSubTitle = h();
|
|
var cardContent = children || [h()];
|
|
|
|
if (props.title) {
|
|
cardTitle = h(BCardTitle, {
|
|
props: pluckProps(titleProps, props)
|
|
});
|
|
}
|
|
|
|
if (props.subTitle) {
|
|
cardSubTitle = h(BCardSubTitle, {
|
|
props: pluckProps(subTitleProps, props),
|
|
class: ['mb-2']
|
|
});
|
|
}
|
|
|
|
return h(props.bodyTag, mergeData(data, {
|
|
staticClass: 'card-body',
|
|
class: [(_ref2 = {
|
|
'card-img-overlay': props.overlay
|
|
}, _defineProperty(_ref2, "bg-".concat(props.bodyBgVariant), props.bodyBgVariant), _defineProperty(_ref2, "border-".concat(props.bodyBorderVariant), props.bodyBorderVariant), _defineProperty(_ref2, "text-".concat(props.bodyTextVariant), props.bodyTextVariant), _ref2), props.bodyClass || {}]
|
|
}), [cardTitle, cardSubTitle].concat(_toConsumableArray(cardContent)));
|
|
}
|
|
}); |