Is it possible to get a valid or same results after each run of a matlab generated script on a saved narxnetwork by toolbox?
7 views (last 30 days)
Show older comments
jeff amponsah
on 18 Dec 2016
Commented: jeff amponsah
on 20 Dec 2016
I have generated a script after going through all the stages of time series prediction using Narx. I run the script on my saved network and find out after each run, the values of the errors, predicted values,everything keep changing. I don't understand, why is that happening and what should i do so that after each run of the script i get the same values if only that is possible, if not is there any way to do that. Thank you
0 Comments
Accepted Answer
Greg Heath
on 19 Dec 2016
Try initializing the random number generator to the same initial state.
For examples search the NEWSGROUP and ANSWERS using
greg rng(0) narxnet
Hope this helps.
Thank you for formally accepting my answer
Greg
More Answers (0)
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!