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

Function log

test/base/options.js:51–51  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

49
50 it('log should allow setting the training options to the constructor', () => {
51 let log = function (res) {};
52 let opts = { log: log };
53 var net = new brain.NeuralNetwork(opts);
54 assert.ok(typeof net.trainOpts.log === 'function', `log => ${net.trainOpts.log} but should be ${opts.log}`);

Callers 2

browser.jsFile · 0.85
trainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected