Scikit-learn 将这些列为其多层感知器分类器的已实现激活函数:
‘identity’, no-op activation, useful to implement linear bottleneck, returns f(x) = x
‘logistic’, the logistic sigmoid function, returns f(x) = 1 / (1 + exp(-x)).
‘tanh’, the hyperbolic tan function, returns f(x) = tanh(x).
‘relu’, the rectified linear unit function, returns f(x) = max(0, x)
有谁知道是否可以实现自定义激活功能?如果没有,有人可以将我指向一个可能的图书馆吗?