How to use the trained network to predict future values?

Dmitrii · May 31, 2021 · 2K views
Question
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 PhD Expert
Answered Nov 20, 2025
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.
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!