how can find the optimal delays and number of hidden nodes in narnet for forecasting task?
Show older comments
I have tried with these code but I haven't found solutions:
1/ Optimal timelags?
N = length(Target)
zy = zscore(Target,1);
autocorry = ifft( abs(fft(zy)).^2 )/N
%AUTOCORRELATION
ZT=zscore(Target,1);
autocorrT = nncorr(ZT,ZT,N-1,'biased')
figure(3)
plot(autocorrT)
%title('ACF')
2/Optimal hidden nodes???
http://www.mathworks.com/matlabcentral/answers/111521-how-to-plot-the-nar-predicted-values-in-matlab
%To find H
[I ,N]=size(Input);
[O ,N]=size(Target);
Neq=N*O;
Hub=floor((N-1)*O/(I+O+1)) %max H for Neq>=Nw
Thank you in advance.
7 Comments
coqui
on 24 Jul 2014
Greg Heath
on 31 Aug 2015
Edited: Greg Heath
on 31 Aug 2015
If your calculations are correct, I would perform my typical double loop search to find the smallest value of H <= 10 to give an acceptable solution.
coqui
on 3 Oct 2015
coqui
on 4 Oct 2015
coqui
on 4 Oct 2015
Greg Heath
on 12 Oct 2015
Edited: Greg Heath
on 12 Oct 2015
Why are you posting questions about NARXNET in a NARNET thread ?
Search the NEWSGROUP and ANSWERS
NEWSGROUP ANSWERS
narxnet nncorr 7 42
narxnet xcorr 2 8
narxnet fft 1 13
Read the most recent NEWSGROUP posts first.
I searched the NEWSGROUP threads listed above. Only the "narxnet nncorr" search was fruitfull. Of the 7 threads, only 3 were useful. However, 8 messages in those threads are useful:
1. Subject: SIGNIFICANT AUTOCORRELATION DELAYS OF THE SIMPLENAR_DATASET
Date: 31 May, 2015
Messages: 12, 15, 19, 23
2. Subject: NARNET TUTORIAL ON MULTISTEP AHEAD PREDICTIONS
Date: 17 Dec, 2014
Messages: 1 , 7, 11
3. Subject: open-loop to closed-loop Narx NN in Matlab Help
Date: 21 Oct, 2012
Message: 4
Hope this helps.
Greg
coqui
on 12 Oct 2015
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!