📄 activati.m
字号:
% Illustration of various activation functions used in NN's% J.-S. Roger Jang, 1993x = -10:0.1:10;tmp = exp(-x);y1 = 1./(1+tmp);y2 = (1-tmp)./(1+tmp);y3 = x;subplot(231); plot(x, y1); grid on;axis([min(x) max(x) -2 2]);title('Logistic Function');xlabel('(a)');axis('square');subplot(232); plot(x, y2); grid on;axis([min(x) max(x) -2 2]);title('Hyperbolic Tangent Function');xlabel('(b)');axis('square');subplot(233); plot(x, y3); grid on;axis([min(x) max(x) min(x) max(x)]);title('Identity Function');xlabel('(c)');axis('square');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -