Hi everyone, I want to use feedforward to predict mackey-glss time series. But when I set delay =10, hidden from 1:10. It train very good but: 1. when I apply to multi-step, some time it fits a little, somtime it not fit any thing. 2. I used double loop like prof Greg with delay = 10 and give the result: hmax =9, with hiddenmax =9 and with all hidden I same receive R>0.9 with 20/20 trial. But when apply to my code, R< 0.09 for train,valid and test. I sets divideblock but not improve R.
%% 2.Preparation data N = 500; input = tonndata(x_t,false,false); output = input; % Divide to two group % 1st: Use for training inputSeries = input(1:end-N);
targetSeries = output(1:end-N); % 2nd group: this is the new data used for simulation. inputSeriesVal will % be used for predicting new targets. targetSeriesVal will be used for % network validation after prediction
inputSeriesVal = input(end-N+1:end); targetSeriesVal = output(end-N+1:end); % This is generally not available %% 3. Network Architecture
delay = 10;
neuronsHiddenLayer = 7;
% Network Creation net = narnet(1:delay,neuronsHiddenLayer); net.divideFcn ='divideblock' % view(net) %% 4. Training the network