Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Hamza Ali
Hamza Ali am 30 Sep. 2017
Kommentiert: Hamza Ali am 1 Okt. 2017
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.

Akzeptierte Antwort

Greg Heath
Greg Heath am 1 Okt. 2017
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 Kommentar
Hamza Ali
Hamza Ali am 1 Okt. 2017
Thank you Mr Greg. i will keep you informed of the results in order to discuss them.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by