How to re-train a neural network
조회 수: 4 (최근 30일)
이전 댓글 표시
How to re-train (continue training) a neural network using the following implementaion:
net = trainNetwork(XTrain,YTrain,layers,options);
댓글 수: 0
답변 (1개)
Aditya Patil
2021년 5월 10일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!