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

4 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Matt J
Matt J am 24 Dez. 2023
Bearbeitet: Matt J am 24 Dez. 2023
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 Kommentare
Mohammad Mainul
Mohammad Mainul am 24 Dez. 2023
Bearbeitet: Mohammad Mainul am 24 Dez. 2023
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 am 24 Dez. 2023
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by