narxnet early prediction problem

5 visualizzazioni (ultimi 30 giorni)
Victor Plaza
Victor Plaza il 25 Apr 2013
I have developed a NarxNet to predict the next High on a stock market asset. When i use the early prediction the network only can predict the y(t) once i have provided two delays with its targets and a new value with a target too. The problem is that at the time of using it in real time i can't have the last target, i mean the value to be predicted target so i get the last one y(t-1) and a NaN for the next.
How can i use then the early prediction to get a prediction of the next value?
Thank you for your help
  1 Commento
Morteza Hajitabar Firuzjaei
Dear Victor,
You can use close loop to predict next values in narxnet, for example:
% one-step-ahead prediction
perf = perform(net,Ts,Y);
[Xs1,Xio,Aio] = preparets(net,inputSeries(1:end-delay),{},targetSeries(1:end-delay));
[Y1,Xfo,Afo] = net(Xs1,Xio,Aio);
[netc,Xic,Aic] = closeloop(net,Xfo,Afo);
[yPred,Xfc,Afc] = netc(inputSeriesVal,Xic,Aic);
multiStepPerformance = perform(net,yPred,targetSeriesVal);
view(netc)
also this information aren't efficient
Beat Regards,
Morteza Hajitabar Firuzjaei

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by