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.
30 lines
672 B
30 lines
672 B
/*!
|
|
* is-registered (https://github.com/jonschlinkert/is-registered)
|
|
*
|
|
* Copyright (c) 2016, Jon Schlinkert.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var define = require('define-property');
|
|
var isObject = require('isobject');
|
|
|
|
module.exports = function(app, name) {
|
|
if (!isObject(app) || typeof name !== 'string') {
|
|
return true;
|
|
}
|
|
|
|
if (typeof app.isRegistered !== 'function') {
|
|
define(app, 'registered', {});
|
|
define(app, 'isRegistered', function(name) {
|
|
if (app.registered.hasOwnProperty(name)) {
|
|
return true;
|
|
}
|
|
app.registered[name] = true;
|
|
return false;
|
|
});
|
|
}
|
|
|
|
return app.isRegistered(name);
|
|
};
|
|
|