recordMetrics
Record metric values in experiment results table and training plot
Syntax
Description
recordMetrics(
records the specified metric value for a trial in the Experiment Manager
results table and training plot.monitor,step,metricName=metricValue)
recordMetrics(
records the metric values specified by the structure
monitor,step,metricStructure)metricStructure.
Examples
Input Arguments
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.
Use the
groupSubPlotfunction to define your training subplots before calling the functionrecordMetrics.Because of the computation required to update graphics, updating the plot every iteration can slow down your training. To reduce the number of plot updates and speed up training, plot multiple values simultaneously by passing vectors of values to the
stepandmetricValuearguments (since R2026a).