MCPcopy
hub / github.com/BrainJS/brain.js / _setLogMethod

Method _setLogMethod

src/neural-network.js:352–360  ·  view source on GitHub ↗

* * @param log * if a method is passed in method is used * if false passed in nothing is logged * @returns error

(log)

Source from the content-addressed store, hash-verified

350 * @returns error
351 */
352 _setLogMethod(log) {
353 if (typeof log === 'function'){
354 this.trainOpts.log = log;
355 } else if (log) {
356 this.trainOpts.log = console.log;
357 } else {
358 this.trainOpts.log = false;
359 }
360 }
361
362 /**
363 *

Callers 3

browser.min.jsFile · 0.80
browser.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected