monitor and plot training progress for deep learning custom training loops -凯发k8网页登录
monitor and plot training progress for deep learning custom training loops
since r2022b
description
use a trainingprogressmonitor
object to track training progress
when using a custom training loop.
you can use a trainingprogressmonitor
object to:
create animated custom metric plots and record custom metrics during training.
display and record training information during training.
stop training early.
track training progress with a progress bar.
track elapsed time.
this image shows an example of the training progress window during training. for more information about configuring the training progress window and an example showing how to generate this figure, see .
creation
description
creates a
monitor
= trainingprogressmonitortrainingprogressmonitor
object that you can use to track the training
progress and create training plots.
properties
object functions
group metrics in training plot | |
record metric values for custom training loops | |
update information values for custom training loops |
examples
tips
the information values appear in the training progress window and the training plot shows a record of the metric values. use information values for text and for numerical values that you want to display in the training window but not in the training plot.
when you click the stop button in the training progress window, the
stop
property is set to1
(true
). this stops training if your training loop exits when thestop
property is1
. for example, to enable early stopping, include the following code in your custom training loop.while numepochs < maxepochs && ~monitor.stop % custom training loop code. end
the elapsed time updates each time you call
recordmetrics
orupdateinfo
, and when you update theprogress
property.
version history
introduced in r2022b
see also
| | |