
[DL] Softsign : tanh의 유사품
·
.../Math
hyperbolic tangent (=tanh)와 유사한 함수. tanh 대신 activation function으로 사용되는 경우도 있음. softsign(x)=x1+|x| softsign의 derivative는 다음과 같음. ddxsoftsign(x)=1(1+|x|)2 차트 비교 관련소스 import numpy as np import matplotlib.pyplot as plt x = np.linspace(-20.,20., 100) softsign = x/ (1.+np.abs(x)) logistic = 1/ (1+np.exp(-x)) tanh = np.tanh(x) fig,ax = plt...