0.0.2 • Published 6 years ago
hyper-validator v0.0.2
Hyper-parameter Validator
hyper-validator is a npm package for hyper-parameter validation.
- install
npm install hyper-validator
- usage
const Hyper = require('hyper-validator');
console.log(Hyper.NaiveBayesParamValidator.validatePriors(" 0.00001 ", true)); // true
console.log(Hyper.NaiveBayesParamValidator.validatePriors(" 0.00001 ", false)); // false
console.log(Hyper.DecisionTreeParamValidator.validateMaxDepth("【3,4,5】", true)); // false
console.log(Hyper.DecisionTreeParamValidator.validateMaxDepth("【3,4,5】", false)); // true
console.log(Hyper.LightGBMParamValidator.validateBoostingType(" ['gbdt'] ", true)); // true
console.log(Hyper.LightGBMParamValidator.validateBoostingType(" ['gbdt'] ", false)); // true