How do I train an existing shallow neural network with new data?

2 次查看(过去 30 天)
Hi,
I have a trained shallow NN that I want to retrain using new experimental data in order to improve the generalization capability of the network. I dont want to reinitialize and train the whole network from scratch. I want the network to adapt itself to the new data. If I use the train function, does it forget the weights and biases of the previous network.
How do I do this? Please help.

采纳的回答

Matt J
Matt J 2023-12-24
编辑:Matt J 2023-12-24
No, it does not forget them, as seen from this example, which talks about resuming a previous training attempt,
If it forgot the weights and biases, resuming would not be possible this way.
  2 个评论
Mohammad Mainul
Mohammad Mainul 2023-12-24
编辑:Mohammad Mainul 2023-12-24
Is it better to include some parts of the original train set with the new set for re-training? Does it have any effect?
Matt J
Matt J 2023-12-24
It would be best to include all of the original training set. Otherwise, the weights will forget the data you omit as the algorithm iterates.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by