How to model one-step-ahead prediction with delays from 1 to 2 in neural network
Mostrar comentarios más antiguos
Hi everybody,
I don't understand how to tell to my NNET (for neural network) that I want to predict a time serie one step ahead using delays from 1 to 2.
I have :
input(i) = input dimension 1x(N-1)
target(i) = target dimension 1x(N-1)
And I want to make this ind of prediction:
target ( i + 1) = fct ( input(i) + input(i-1) + input(i-2))
Is the following the right solution ?
ftdnn_net = timedelaynet([1:2],10);
p = input (3:end);
t = target(3:end);
Pi= input(1:2);
ftdnn_net = train(ftdnn_net,p,t,Pi);
I am afraid that I am using input(i) to predict target(i) which is not what I want to do. target(i) must be predicted with information available at time strictly lower than (<) i.
ex:
I want, target (3) to be predicted by input(1) and input(2)
and
target (4) to be predicted by input(1) and input(2) and input(3)
and
target (5) to be predicted by input(2) and input(3) and input(4)
and so on.
Thanks guys.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!