MATLAB: In neural network, how can I change the sigmoid activation function to a Gaussian one, How to modify the Matlab codes to achieve this

activation functionDeep Learning Toolboxneural network

that is, change this function: a = tansig(n) = 2/(1+exp(-2*n))-1 to a = gauss(n) = exp(-(n.^2))

Best Answer

net = fitnet;
net.layers{1}.transferFcn = 'radbas';
Hope this helps.
Thank you for formally accepting my answer
Greg