* * @param opts * Supports all `trainDefaults` properties * also supports: * learningRate: (number), * momentum: (number), * activation: 'sigmoid', 'relu', 'leaky-relu', 'tanh'
(opts)
| 321 | * activation: 'sigmoid', 'relu', 'leaky-relu', 'tanh' |
| 322 | */ |
| 323 | _updateTrainingOptions(opts) { |
| 324 | Object.keys(NeuralNetwork.trainDefaults).forEach(opt => this.trainOpts[opt] = (opts.hasOwnProperty(opt)) ? opts[opt] : this.trainOpts[opt]); |
| 325 | NeuralNetwork._validateTrainingOptions(this.trainOpts); |
| 326 | this._setLogMethod(opts.log || this.trainOpts.log); |
| 327 | this.activation = opts.activation || this.activation; |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * |
no test coverage detected