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/reduce-object/index.js

29 lines
570 B

/*!
* reduce-object <https://github.com/jonschlinkert/reduce-object>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
'use strict';
var forOwn = require('for-own');
module.exports = function reduce(o, fn, acc, thisArg) {
var first = arguments.length > 2;
if (o && !Object.keys(o).length && !first) {
return null;
}
forOwn(o, function (value, key, orig) {
if (!first) {
acc = value;
first = true;
} else {
acc = fn.call(thisArg, acc, value, key, orig);
}
});
return acc;
};