experiments.Monitor
Update results table and training plots for custom training experiments
Since R2021a
Description
When running a custom training experiment in Experiment Manager, use
an experiments.Monitor
object to track the progress of the training, update
information fields in the results table, record values of the metrics used by the training,
and produce training plots. For more information on custom training experiments, see Train Network Using Custom Training Loop and Display Visualization.
Creation
When you run a custom training experiment, Experiment Manager creates an
experiments.Monitor
object for each trial of your experiment. Access the
object as the second input argument of the training function.
Properties
Object Functions
groupSubPlot | Group metrics in experiment training plot |
recordMetrics | Record metric values in experiment results table and training plot |
updateInfo | Update information columns in experiment results table |
yscale | Set training plot y-axis scale (linear or logarithmic) |
Examples
Tips
Both information and metric columns display values in the results table for your experiment. Additionally, the training plot shows a record of the metric values. Use information columns for text and for numerical values that you want to display in the results table but not in the training plot.
An
experiments.Monitor
object has the same properties and object functions as aTrainingProgressMonitor
object. Therefore, you can easily adapt your custom training loop plotting code for use in an Experiment Manager setup script. For more information, see Prepare Plotting Code for Custom Training Experiment.