필터 지우기
필터 지우기

Trial-and-error or K-fold cross-validation

조회 수: 1 (최근 30일)
Hamza Ali
Hamza Ali 2017년 9월 30일
댓글: Hamza Ali 2017년 10월 1일
Hello,
As researcher, i would like to ask for efficient algorithm to determine ANN's architecture (number of hidden neurons in one hidden layer),and i can not choose between Trial-and-Error and K-Fold Cross-validation. Indeed, most of researchers use in their articles K-Fold Cross-validation and i do not know why ? Thank you for you answer.

채택된 답변

Greg Heath
Greg Heath 2017년 10월 1일
If you search in both the NEWSGROUP and ANSWERS you will see zillions of examples of my two loop solution:
%Outer loop over number of hidden nodes, e.g.,
rng(0), j=0
for h = Hmin:dH:Hmax
j = j + 1
net = fitnet(h);
etc ...
%Inner loop over Ntrials sets of random initial weights
for i = 1:Ntrials
net = configure(net,x,t);
etc ...
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
Hamza Ali
Hamza Ali 2017년 10월 1일
Thank you Mr Greg. i will keep you informed of the results in order to discuss them.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by