In the following code i get error a sP1 = [-1 -1 2 2; 0 5 0 5];Tar = [0 ;1 ]indices=crossvalind('kfold',Tar,10); for i=1:10 test=(indices==i);trains= ~testtst = (indices==i);val = (indices== mod(i+1,10));trn = ~[tst,val]; net=newff(P1(:,trains),Tar(:,trains),2); net=init(net); [net,tr]=train(net,P1(:,trains),Tar(:,trains)); out = round(sim(net,P(:,test))); end Index exceeds matrix dimensions.Error in cfour (line 58)net=newff(P1(:,trains),Tar(:,trains),2);please help
MATLAB: Error-index exceeds matrix dimension
matrix
Related Question
- How to calculate the error in Neural Network Back Propagation Network
- Neural Networks– train function error Indexing cannot yield multiple results.
- Help in training a nueral network
- Cross validation for neural network
- How to provide training data to the neural network
- Problem in training the feed-forward network.
- Neural network (fitnet) and data decomposition
Best Answer