小编Léc*_*bon的帖子

如何在python中实现Leaky Relu的派生词?

如何在不使用Tensorflow的情况下在Python中实现Leaky ReLU的派生类?

有没有比这更好的方法了?我希望函数返回一个numpy数组

def dlrelu(x, alpha=.01):
     # return alpha if x < 0 else 1

     return np.array ([1 if i >= 0 else alpha for i in x])
Run Code Online (Sandbox Code Playgroud)

在此先感谢您的帮助

python neural-network activation-function

6
推荐指数
1
解决办法
3969
查看次数