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?
Best Answer