How are the number of neurons in the output layers chosen?

1 回表示 (過去 30 日間)
Precious Eze
Precious Eze 2017 年 9 月 16 日
回答済み: Osama Tabbakh 2019 年 5 月 1 日
I discovered that after choosing the number of neurons in the hidden layer, the network automatically sets the number of output neurons. Whats the intuition behind it?
  2 件のコメント
Osama Tabbakh
Osama Tabbakh 2019 年 4 月 7 日
I have the same question but obviously nobody has answer.
Greg Heath
Greg Heath 2019 年 4 月 9 日
???
My answer ( O ) was given ~ 1.5 years ago
Greg

サインインしてコメントする。

回答 (2 件)

Greg Heath
Greg Heath 2017 年 9 月 17 日
[ I N ] = size(input)
[ O N ] = size(target)
I-H-O = size of a single layer NN
You (lucky dog) have the extreme pleasure of either
setting H OR accepting the default H=10.
Hope this helps.
Thank you for accepting my exceptional answer
Greg

Osama Tabbakh
Osama Tabbakh 2019 年 5 月 1 日
I discovered why Matlab does that. I will explain it.
Matlab tried to make the samples easier to train, that why he deletes the values of the vector, which are either zero or not important to train. But you get at the end, what you would have.
In the attachment, you see that I have in the output vector 60 components but the last 20 are just zeros, what why he deletes them from the output layer and put it back in the output.

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by