【发布时间】:2023-04-04 07:45:02
【问题描述】:
我正在使用 matlab 的神经网络进行分类。 我想知道如何将网络参数如:epoches、time、mse等存储在训练后的矩阵中?
非常感谢
【问题讨论】:
标签: matlab neural-network
我正在使用 matlab 的神经网络进行分类。 我想知道如何将网络参数如:epoches、time、mse等存储在训练后的矩阵中?
非常感谢
【问题讨论】:
标签: matlab neural-network
您可以将网络参数存储在元胞数组中。请在以下链接中找到更多详细信息:http://www.mathworks.ch/ch/help/matlab/cell-arrays.html
【讨论】:
调用train 时,第二个返回参数是training record,其中包含有关训练的时期、时间和其他信息。例如
[net,tr] = train(net,data,target);
tr.epoch
tr.time
对于mse,给定测试数据data,目标数据target和神经网络net:
%run inputs through network
result = net(data);
%get the error
error = result - target;
%calculate mse
mse(error)
【讨论】: