How to re-train a neural network

5 visualizzazioni (ultimi 30 giorni)
Israel Yaish
Israel Yaish il 29 Apr 2021
Risposto: Aditya Patil il 10 Mag 2021
How to re-train (continue training) a neural network using the following implementaion:
net = trainNetwork(XTrain,YTrain,layers,options);

Risposte (1)

Aditya Patil
Aditya Patil il 10 Mag 2021
Check the documentation on how to resume training from checkpoint.
In short, save the model to a mat file using the CheckpointPath option, and load the mat file later. Then you can resume the training my passing the layers of the checkpoint during training, as follows
trainNetwork(XTrain,YTrain,net.Layers,options)
Note that if you reuse the same options, you might see that the training diverges, as the training might have reduced the learning rate. Hence, use appropriate options as required.

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by