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

조회 수: 4 (최근 30일)
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 CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by