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.
 
 
 
 
StackGenVis/frontend/node_modules/base-cli-process/lib/fields/plugins.js

28 lines
542 B

'use strict';
var utils = require('../utils');
/**
* Load plugins from a filepath or glob pattern.
*
* ```sh
* $ app --plugins="./foo.js"
* ```
* @name plugins
* @api public
*/
module.exports = function(app) {
return function(val, key, config, next) {
if (typeof app.pipeline !== 'function') {
next(new Error('expected base-pipeline to be registered'));
return;
}
if (utils.isString(val)) {
val = config[key] = [utils.stripQuotes(val)];
}
app.config.process({plugins: val}, next);
};
};