How to use the trained network to predict future values?

Illustration
Dmitrii - 2021-05-31T12:39:57+00:00
Question: How to use the trained network to predict future values?

Hi! I have created neural network using nnstart: NAR; d = 10. After training I saved network in workspase (name: net). Now can I use this trained network to predict future 10 values?  

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

If the new data immediately follows the data used to design and test the net, the following syntax should have been used
 
[ net tr Ys Es Xsf Asf ] = train(net,Xs,Ts,Xi,Ai);
Xinew = Xsf; Ainew = Asf;
Ysnew = net(Xsnew,Xinew,Ainew);
Otherwise
Xinew = Xnew(:,1:d); Xsnew = Xnew(:,d+1:end)
but Ainew is not known.
 
I would try the mean of the previously used test target data rather than use zeros. Perhaps several designs using values in the interval [mean-stdv,mean+stdv] would be useful.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!