M
M
Maxim Nine2017-08-28 12:28:14
Neural networks
Maxim Nine, 2017-08-28 12:28:14

How to train again?

I'm using brain.js
Loading a network with JSON, how can I train it further?
That is, use train() several times.
An error occurs on the second train:

/root/node_modules/brain.js/dist/recurrent/rnn.js:471
        if (isNaN(error)) throw new Error('network error rate is unexpected NaN, check network configurations and try again');
                          ^

Error: network error rate is unexpected NaN, check network configurations and try again
    at RNN.train (/root/node_modules/brain.js/dist/recurrent/rnn.js:471:33)
    at Object.<anonymous> (/root/kulonful.ru/app.js:24:6)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2017-08-28
@kulonful

I suggest reading the brain.js documentation, in which it is written in English and white:
In the same place, on the line below, it is indicated that this file has an example of such behavior.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question