How to avoid declaration of neural network in an m file again and again?

2 ビュー (過去 30 日間)
Abbas
Abbas 2013 年 5 月 31 日
コメント済み: mittal54 2015 年 5 月 15 日
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.

採用された回答

Greg Heath
Greg Heath 2013 年 6 月 1 日
rng(0)
% help rng %doc rng
Thank you for formally acceptingmy answer
Greg
  1 件のコメント
mittal54
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 ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by