なぜ全て同じパラメー​タでネットワークを訓​練しても、結果が異な​る場合があるのでしょ​うか?

14 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 25 Oct 2013
なぜ全て同じパラメータでネットワークを訓練しても、結果が異なる場合があるのでしょうか?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Oct 2013
ニューラルネットワークを初期化する際、重み行列の初期値は乱数によって決定されます。そのため、同じデータを使用し、同じパラメータで訓練を行っても、全く同じ結果になるとは限りません。
ある入力に対して必ず同じ出力を得たい場合は、ネットワークを初期化する前に乱数発生器の状態を同じにする必要があります。乱数発生器のシードを設定する方法については、関数randのリファレンスを参照してください。MATLABコマンドウィンドウで以下のコマンドをタイプすると参照できます。
>> doc rand

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2008b

Community Treasure Hunt

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

Start Hunting!