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

Deep Learning Toolboxneural networkneural networks

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.

Best Answer

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