i've tried this code...
load dataset4_bp_kn_fs
TrainingSet=data;
GroupTrain=target;
Indices = crossvalind('Kfold',GroupTrain , 10);
for i=1:10
test = (Indices == i); train = ~test;
net = newff(TrainingSet(train,:),GroupTrain(train,:),20,{},'trainscg');
[net,TR] = traingd(net,TrainingSet(train,:),TrainingSet(test,:))
a = sim(net,TrainingSet(train,:));
b=sim(net,TrainingSet(test,:));
end
where, data is 16 x 54 and target is 1x54 i'm getting error as, ??? Index exceeds matrix dimensions. and
??? Error using ==> network.subsref at 83 Reference to non-existent field 'lr'.
Error in ==> traingd at 141 lr = net.trainParam.lr; ..
i've made few trials too like setting the target as 3x54 matrix but dono how to proceed with this... really in a confused state..