Does the neural net toolbox handle model training/prediction in a future-time-indepenent manner?
Mostrar comentarios más antiguos
Does the neural net toolbox handle model training/prediction in a future-time-indepenent manner? I.e. the prediction for x(t) doesn't use a model trained on data from x(t+n)
For a code example:
inputDelays = 1:delays;
feedbackDelays = 1:delays;
hiddenLayerSize = 10;
net = narxnet(inputDelays,feedbackDelays,hiddenLayerSize);
net = removedelay(net);
[inputs,inputStates,layerStates,targets] = preparets(net,tonndata(x,false,false),{},tonndata(y,false,false));
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
[net,tr,Ys Es Xf Af] = train(net,inputs,targets,inputStates,layerStates);
outputs = net(inputs,inputStates,layerStates);
Would output(i) only be predicted from a model trained on inputs(1:i-1), and if not, is there a simple function for doing this other than re-training and re-predicting at every time step?
Respuesta aceptada
Más respuestas (1)
Greg Heath
el 10 de Mzo. de 2016
In general
Input delays are nonnegative and increasing but not necessarily consecutive, e.g.,
ID = [ 0:2:4 ]
Significant input delays correspond to statistically significant input/target cross-correlation values.
Feedback delays are positive and increasing but not necessarily consecutive, e.g.,
FD = [ 1:2:5 ]
Significant feedback delays correspond to statistically significant target auto-correlation values.
if id is an input delay, the output at time t will depend on the input at the previous time t-id.
Similarly, if fd is a feedback delay, the output at time t will depend on the past output value at time t-fd.
NOTE: An openloop feedback delay can be zero. However, it will either be ignored or cause an error when the feedback loop is closed.
Typically, delays are chosen to be consecutive and include an adequate number of significant delays.
Hope this helps.
Thank you for formally accepting my answer
Greg
1 comentario
Vitya V
el 10 de Mzo. de 2016
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!