我有这段代码:
load bending_data
net = newff(I, O, [i j],{'tansig' 'tansig' 'purelin'},'trainscg'); %'divideind'
net.divideFcn = 'divideInd';
%now I split data
trainInd=1:50;
valInd=51:65;
testInd=66:81;
[trainP,valP,testp]=divideind(I,trainInd,valInd,testInd);
[traint,valt,testt]=divideind(O,trainInd,valInd,testInd);
y=sim(net, I);
如何仅针对训练数据集获取错误?以及我将如何指定用于查找错误的输入训练集?请帮忙......
答案 0 :(得分:0)
来自http://www.mathworks.com/help/toolbox/nnet/ref/adapt.html:
[net,Y,E,Pf,Af,tr] = adapt(net,P,T,Pi,Ai) takes
...
E Network errors