我有以下代码
trainData = [11x293 matrix consist of double values];
trainTarget = [3x293 matrix consist of binary values];
testData = [11x32 matrix consist of double values];
trainTarget = [3x32 matrix consist of binary values];
net = newfit(trainData,trainTarget,{20});
net = train(net,trainData,trainTarget);
predicted = sim(net,testData);
% predicted matrix is consist of double values as prediction of trained network
我想从 MATLAB 命令行访问在网络训练后生成的平均平方误差 (MSE)。如果没有直接访问 MSE 的代码,我需要一个算法来计算它。
提前致谢。