Deep learning I - III Shallow Neural Network - Derivatives of activation functions激励函数导数推导

Derivatives of activation functions 激励函数的导数


Derivatives of Sigmod

sigmod=g(z)=11+ez(1) (1) s i g m o d = g ( z ) = 1 1 + e − z

g(z)=ddzg(z)=d(1+ez)1d(1+ez)d(1+ez)d(z)d(z)dz=(1+ez)2ez1=1(1+ez)ez(1+ez)=1(1+ez)1+ez1(1+ez)=1(1+ez)(11(1+ez))=g(z)(1g(z))(2) (2) g ′ ( z ) = d d z g ( z ) = d ( 1 + e − z ) − 1 d ( 1 + e − z ) ∗ d ( 1 + e − z ) d ( − z ) ∗ d ( − z ) d z = − ( 1 + e − z ) − 2 ∗ e − z ∗ − 1 = 1 ( 1 + e − z ) ∗ e − z ( 1 + e − z ) = 1 ( 1 + e − z ) ∗ 1 + e − z − 1 ( 1 + e − z ) = 1 ( 1 + e − z ) ∗ ( 1 − 1 ( 1 + e − z ) ) = g ( z ) ∗ ( 1 − g ( z ) )

这里写图片描述

Derivatives of tanh

sinh(z)=ezez2(3) (3) s i n h ( z ) = e z − e − z 2

cosh(z)=ez+ez2(4) (4) c o s h ( z ) = e z + e − z 2

ddzsinh(z)=ez+ez2=cosh(z)(5) (5) d d z s i n h ( z ) = e z + e − z 2 = c o s h ( z )

ddzcosh(z)=ezez2=sinh(z)(6) (6) d d z c o s h ( z ) = e z − e − z 2 = s i n h ( z )

tanh(z)=sinh(z)cosh(z)=g(z)=ezezez+ez(7) (7) t a n h ( z ) = s i n h ( z ) c o s h ( z ) = g ( z ) = e z − e − z e z + e − z

g(z)=ddz(sinh(z)cosh(z)1)=ddzsinh(z)cosh(z)1+sinh(z)ddcosh(z)cosh(z)1ddzcosh(z)=1+sinh(z)1cosh(z)2sinh(z)=1tanh(z)2(8) (8) g ′ ( z ) = d d z ( s i n h ( z ) c o s h ( z ) − 1 ) = d d z s i n h ( z ) ∗ c o s h ( z ) − 1 + s i n h ( z ) ∗ d d c o s h ( z ) c o s h ( z ) − 1 ∗ d d z c o s h ( z ) = 1 + s i n h ( z ) ∗ − 1 c o s h ( z ) 2 ∗ s i n h ( z ) = 1 − t a n h ( z ) 2

这里写图片描述

Derivatives of ReLU

ReLU=g(z)=max(0,z)(9) (9) R e L U = g ( z ) = m a x ( 0 , z )

g(z)={01if z<0if z0(10) (10) g ′ ( z ) = { 0 i f   z < 0 1 i f   z ≥ 0

Leaky ReLU=g(z)=max(0.01z,z)(11) (11) L e a k y   R e L U = g ( z ) = m a x ( 0.01 z , z )

g(z)={0.011if z<0if z0(12) (12) g ′ ( z ) = { 0.01 i f   z < 0 1 i f   z ≥ 0

这里写图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值