Divideind not working in r2014a
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have data file of 200*62 and i have to split it for training validation and testing (not randomly). So im using divideind function but not able to run the code as im having this error. Looking forward to some help . Thanks in advance here is my code :
inputs = input;
targets = out_final; hiddenLayerSize = 10;
net = patternnet(hiddenLayerSize);
trainInd = 1:100;
valInd = 101:150;
testInd = 151:200;
Q=200;
net.divideFcn='divideind'; %%%here is the error line 21
net.divideParam.trainInd=trainInd;
net.divideParam.valInd=valInd;
net.divideParam.testInd=testInd;
% Train the Network
[net,tr] = train(net,inputs,targets);
% Test the Network
outputs = net(inputs);
errors = gsubtract(targets,outputs);
performance = perform(net,targets,outputs);
% View the Network
view(net)
Error message :
Error in network/subsasgn (line 13) net = network_subsasgn(net,subscripts,v,netname);
Error in div (line 21) net.divideFcn='divideind';
6 comentarios
Greg Heath
el 24 de Feb. de 2015
Editada: Greg Heath
el 24 de Feb. de 2015
No. It is automatic. You can figure it yourself from the training record if you first type, without semicolon
tr = tr
Hope this helps.
Greg
Respuestas (0)
Ver también
Categorías
Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!