Optimal hidden nodes???
I have 1413 observations: the targetseries size
trn/val/tst ratios = 0.8/0.10/0.10
ID = 0:2
Ntrneq = No. oftraining equations = prod(size(ttrn)) = Ntrn*O
where
[O ,Ntrn]=size(trainTarget);
O=1
and
Ntrn=(1413-2)*0.8= 1129
therefore
Ntrneq = Ntrn*O=1129*1=1129
and
Nw = No. of weights to be estimated
Nw = (MXFD*O +1 )*H + (H+1)*O
Nw = (10*1 +1 )*H + (H+1)*1 % is H =1413*0.8=1130??? and why we employed
MXFD=10???
Supposing that H=1130 and MXFD=10:
Nw = (10*1 +1 )*1130 + (1130+1)*1=13561
and the requirement Ntrneq > Nw yields the upper bound
Hub = -1 + ceil( (Ntrneq-O) / ( MXFD*O + O +1) )
Hub = -1 + ceil( (1129-1) / ( 10*1 + 1 +1) )=93
Hmax = floor(Hub/10)=9
As 9 the number of hidden nodes???