主要内容

plottrainstate

绘制训练状态值图

语法

plottrainstate(tr)

说明

plottrainstate(tr) 根据 train 返回的训练记录 tr 绘制训练状态。

示例

全部折叠

此示例说明如何使用 plottrainstate 绘制训练状态值。

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

Figure Neural Network Training (14-Jul-2025 06:05:52) contains an object of type uigridlayout.

plottrainstate(tr)

Figure Training State (plottrainstate) contains 3 axes objects. Axes object 1 with title Gradient = 62.2481, at epoch 15, ylabel gradient contains an object of type line. Axes object 2 with title Mu = 0.001, at epoch 15, ylabel mu contains an object of type line. Axes object 3 with title Validation Checks = 6, at epoch 15, xlabel 15 Epochs, ylabel val fail contains a line object which displays its values using only markers.

版本历史记录

在 R2008a 中推出