Neural network toolbox

Hi
I am trying to design a neural network using the NN toolbox, the toolbox set the only one hidden layer by default, My question is how can I add another hidden layer in the network
Thanks Ram

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 2 月 10 日

0 投票

The method is not clear to me. Earlier when someone asked much the same question for newff(), my interpretation was:
It appears to me that the number of layers is one more than the number of size (Si) parameters that you provide. Thus,
newff(p,t,[3 3])
would, I think, create two hidden layers both with 3 neurons.
No promises, but you could try the experiment.

1 件のコメント

Greg Heath
Greg Heath 2012 年 2 月 14 日
That is correct. However, there is seldom a need for more than one hidden layer.
For the earlier version of newff with size(p) = [I N], size(t) = [O N] and an I-H1-H2-O node topology:
net = newff(minmax(p),[H1 H2 O]);
instead of
net = newff(p,t,[H1 H2]);
In the newest version
net = fitnet([H1 H2]);
Hope this helps.
Greg

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

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2012 年 2 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by