필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Neural Networks, K fold in patternnet

조회 수: 1 (최근 30일)
laplace laplace
laplace laplace 2013년 5월 19일
i got 3x1 matrices that i wanna classify in to two groups using k fold crossvalidation method.
  1. i have to train a network with the patternnet algorithm
  2. and apply to the data the k-fold cross validation method,
Indices = crossvalind('Kfold',inputs , 5);
for i=1:5
test = (Indices == i);
train = ~test;
for n = 1:5
net = patternnet(inputs,targets,h); %test train
net.divideFcn = 'dividetrain';
net.trainParam.goal = MSEgoal;
net.trainParam.min_grad = MinGrad;
[net,tr] = train(net,inputs,targets); % test train
bestepoch = tr.best_epoch;
R2(n,h) = 1 - tr.perf(bestepoch)/MSEtrn00;
end
the above code is really wrong can someone correct it? its urgent
  댓글 수: 3
laplace laplace
laplace laplace 2013년 5월 19일
i know it is.. i just cant think smth else.. its really really urgent if you find some time i would appreciate it..

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by