why a result changed, when i was repeated a neural network program?

1 回表示 (過去 30 日間)
Sung-Jun
Sung-Jun 2014 年 1 月 14 日
コメント済み: Greg Heath 2014 年 1 月 15 日
I made a simple neural network program using a 'train' function.
And every time I repeated this program, the result was changed.
but if I quit a matlab and run this again, same result come out.
why this situation happening? please answer easily. thanks.

回答 (1 件)

Niklas Nylén
Niklas Nylén 2014 年 1 月 14 日
When you restart Matlab, the random number generator is reset which is likely the reason that you can repeat the result after Matlab is restarted. To test if this is the reason, you can manually set the random number generator using the rng command. Try for example to run
rng(1)
before each training and check if you obtain the same result.

カテゴリ

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