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
540 B
30 lines
540 B
/*!
|
|
* write-json <https://github.com/jonschlinkert/write-json>
|
|
*
|
|
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var writeFile = require('write');
|
|
|
|
/**
|
|
* Expose `writeJson`
|
|
*/
|
|
|
|
module.exports = function writeJson(dest, obj, cb) {
|
|
writeFile(dest, JSON.stringify(obj, null, 2), cb);
|
|
};
|
|
|
|
/**
|
|
* Expose `writeJson.sync`
|
|
*/
|
|
|
|
module.exports.sync = function writeJsonSync(dest, obj) {
|
|
try {
|
|
writeFile.sync(dest, JSON.stringify(obj, null, 2));
|
|
} catch (err) {
|
|
throw err;
|
|
}
|
|
};
|
|
|