2.7 Adam

这里写图片描述

这一篇写得特别详细:
深度学习优化算法解析(Momentum, RMSProp, Adam)
Adam(Adaptive Moment Estimation)
初始化:

vdW=0,vdb=0,SdW=0,Sdb=0 v d W = 0 , v d b = 0 , S d W = 0 , S d b = 0

On iteration t:
compute dW,db d W , d b using mini batch

Momentum:vdW=β1vdW+(1β1)dWvdb=β1vdb+(1β1)dbRMSprop:SdW=β2SdW+(1β2)dW2Sdb=β2Sdb+(1β2)db2Biascorrection:vcorrecteddW=vdW1β21vcorrecteddb=vdb1β21ScorrecteddW=SdW1β22Scorrecteddb=Sdb1β22Computation:W=WαvdWSdWb=bαvdbSdb M o m e n t u m : v d W = β 1 v d W + ( 1 − β 1 ) d W v d b = β 1 v d b + ( 1 − β 1 ) d b R M S p r o p : S d W = β 2 S d W + ( 1 − β 2 ) d W 2 S d b = β 2 S d b + ( 1 − β 2 ) d b 2 B i a s c o r r e c t i o n : v d W c o r r e c t e d = v d W 1 − β 1 2 v d b c o r r e c t e d = v d b 1 − β 1 2 S d W c o r r e c t e d = S d W 1 − β 2 2 S d b c o r r e c t e d = S d b 1 − β 2 2 C o m p u t a t i o n : W = W − α v d W S d W b = b − α v d b S d b

这里写图片描述
When implementing Adam, what people usually do is just use the default value. So, β1 β 1 and β2 β 2 as well as ϵ ϵ . I don’t think anyone ever really tunes Epsilon. And then, try a range of values of Alpha to see what works best.

So, where does the term ‘Adam’ come from?

Adam stands for Adaptive Moment Estimation. So β1 β 1 is computing the mean of the derivatives. This is called the first moment. And β2 β 2 is used to compute exponentially weighted average of the squares and that’s called the second moment. So that gives rise to the name adaptive moment estimation.

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值