主要内容

plottrainstate

R2026b

(即将删除)绘制训练状态值图

以后的版本中将会删除 plottrainstate。有关详细信息,请参阅将旧版神经网络代码转移到 dlnetwork 工作流。

有关更新代码的建议,请参阅版本历史记录。

语法

plottrainstate(tr)

描述

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

示例

全部折叠

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

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

Figure Neural Network Training (07-Aug-2026 05:45:35) 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 中推出

全部折叠