@tensorflow 常见激活函数使用方法

@tensorflow 常见激活函数使用方法

常见激活函数

  1. sigmoid
  2. tanh
  3. relu
  4. leak relu
  5. softmax

激活函数的导数

  1. sigmoid 的导数
  2. tanh 的导数
  3. relu 的导数
  4. leak relu 的导数
  5. softmax 的导数

代码实践

import tensorflow as tf
import numpy as np

# generate a tensor a
a = tf.conve

版权声明:本文为alston_ethannical原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。