Resuming training on a Brain.js Neural Network Model

老子叫甜甜 提交于 2020-02-02 11:58:05

问题


I am looking to incrementally train a neural net using Brain.js, but can't find a solution using the current version. There is a similar answer to this same problem but it uses a deprecated function parameter keepNetworkIntact. How is this done?


回答1:


You simply need to import the json into the neural network, and continue training:

const net = new brain.NeuralNetwork();
net.fromJSON(json);
net.train(trainingData, trainingOptions);

The feature was deprecated because we only want to keep the options we absolutely need to keep the api as simple as possible and based off importing json the net can determine what you intend to do next.



来源:https://stackoverflow.com/questions/52798804/resuming-training-on-a-brain-js-neural-network-model

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!