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.
45 lines
930 B
45 lines
930 B
4 years ago
|
'use strict';
|
||
|
|
||
|
var utils = require('../utils');
|
||
|
|
||
|
/**
|
||
|
* Remove names from the list of locally or globally stored updaters.
|
||
|
*
|
||
|
* ```sh
|
||
|
* # remove updater `foo`
|
||
|
* $ update -r foo
|
||
|
* # or
|
||
|
* $ update -rc foo
|
||
|
* # sugar for
|
||
|
* $ update --remove --config foo
|
||
|
* # remove globally stored updaters
|
||
|
* $ update -rg foo
|
||
|
* # sugar for
|
||
|
* $ update --remove --global foo
|
||
|
* ```
|
||
|
* @name tasks
|
||
|
* @api public
|
||
|
* @cli public
|
||
|
*/
|
||
|
|
||
|
module.exports = function(app, options) {
|
||
|
return function(names, key, config, next) {
|
||
|
var updaters = [];
|
||
|
|
||
|
if (typeof names === 'string') {
|
||
|
names = utils.toArray(names);
|
||
|
}
|
||
|
|
||
|
if (!config.config) {
|
||
|
updaters = app.globals.get('updaters') || [];
|
||
|
app.globals.set('updaters', updaters.concat(names));
|
||
|
|
||
|
} else {
|
||
|
updaters = app.pkg.get('update.updaters') || [];
|
||
|
app.pkg.union('update.updaters', updaters.concat(names));
|
||
|
app.pkg.save();
|
||
|
}
|
||
|
next();
|
||
|
};
|
||
|
};
|