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

조회 수: 2 (최근 30일)
Mohammad Mainul
Mohammad Mainul 2023년 12월 24일
댓글: Matt J 2023년 12월 24일
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