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.
37 lines
910 B
37 lines
910 B
4 years ago
|
'use strict';
|
||
|
|
||
|
var expanders = require('./expanders');
|
||
|
var utils = require('./utils');
|
||
|
|
||
|
/**
|
||
|
* Expand package.json using a schema.
|
||
|
*/
|
||
|
|
||
|
module.exports = function(options) {
|
||
|
var pkg = new utils.Pkg(options);
|
||
|
var schema = pkg.schema
|
||
|
|
||
|
/**
|
||
|
* Person fields
|
||
|
*/
|
||
|
|
||
|
.field('owner', 'string', { normalize: expanders.owner })
|
||
|
.field('author', ['object', 'string'], { normalize: expanders.person })
|
||
|
.field('authors', 'array', { normalize: expanders.persons })
|
||
|
.field('maintainers', 'array', { normalize: expanders.persons })
|
||
|
.field('contributors', 'array', { normalize: expanders.persons })
|
||
|
.field('collaborators', 'array', { normalize: expanders.persons })
|
||
|
|
||
|
/**
|
||
|
* Bugs, repo and license
|
||
|
*/
|
||
|
|
||
|
.field('git', ['object', 'string'], {
|
||
|
normalize: expanders.git
|
||
|
});
|
||
|
|
||
|
// Add fields defined on `options.fields`
|
||
|
schema.addFields(options);
|
||
|
return schema;
|
||
|
};
|