0.0.2 • Published 6 years ago

hyper-validator v0.0.2

Weekly downloads
84
License
MIT
Repository
-
Last release
6 years ago

Hyper-parameter Validator

hyper-validator is a npm package for hyper-parameter validation.

  1. install
npm install hyper-validator
  1. 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
0.0.2

6 years ago

0.0.1

6 years ago