Main Content

plottrainstate

Plot training state values

Syntax

plottrainstate(tr)

Description

plottrainstate(tr) plots the training state from a training record tr returned by train.

Examples

collapse all

This example shows how to plot training state values using plottrainstate.

[x, t] = bodyfat_dataset;
net = feedforwardnet(10);
[net, tr] = train(net, x, t);

{"String":"Figure Neural Network Training (31-Aug-2022 01:37:02) contains an object of type uigridlayout.","Tex":[],"LaTex":[]}

plottrainstate(tr)

{"String":"Figure Training State (plottrainstate) contains 3 axes objects. Axes object 1 with title Gradient = 62.2474, at epoch 15 contains an object of type line. Axes object 2 with title Mu = 0.001, at epoch 15 contains an object of type line. Axes object 3 with title Validation Checks = 6, at epoch 15 contains an object of type line.","Tex":["Gradient = 62.2474, at epoch 15","Mu = 0.001, at epoch 15","Validation Checks = 6, at epoch 15"],"LaTex":[]}

Version History

Introduced in R2008a