How to avoid declaration of neural network in an m file again and again?
1 次查看(过去 30 天)
显示 更早的评论
I am using a feed forward neural network with keyword feedforwardnet in an m file.Whenever I run my m file neural network gives different results may be because of new weights and biases for each new declaration of neural network.I am not using init() function which initializes weights and biases each time; even then it is happening.It seems to happen because of new declaration of network each time m file is run.Please help me to avoid this so that I can obtain consistent results from neural network.
0 个评论
采纳的回答
Greg Heath
2013-6-1
rng(0)
% help rng %doc rng
Thank you for formally acceptingmy answer
Greg
1 个评论
mittal54
2015-5-15
Thanks @greg I was wondering why rng(0) is used in most of the examples. Now I got it
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!