What activation functions does patternnet use for the hidden and output layers?

4 ビュー (過去 30 日間)
TS Sharma
TS Sharma 2015 年 3 月 27 日
コメント済み: Ewan McRobert 2021 年 2 月 14 日
Hi! I whant to know what activation functions patternnet uses for the hidden and output layers? The documentation says tansig, but I am not sure if it is used for both kinds of layers.

採用された回答

Gmoj Goo
Gmoj Goo 2015 年 3 月 27 日
Patternnet uses tansig for hidden layers and softmax for output layer. You can see it using this command If you have 2 hidden layers:
net.layers{1 or 2}.transferFcn - for the hidden
net.layers{3}.transferFcn - for the output
  3 件のコメント
Rahmat Izaizi Ismail
Rahmat Izaizi Ismail 2015 年 4 月 29 日
Please also advise on how to change the transfer function for the respective layer. Thank You.
Ewan McRobert
Ewan McRobert 2021 年 2 月 14 日
To change the transfer function for the first hidden layer to radial basis function use the following code:
net.layers{1}.transferFcn='radbas';
If you type the following command it will give you a complete list of valid transfer functions:
help nntransfer

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

その他の回答 (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