caffe教程笔记《Solver》

Solver可理解为模型舵手。因为它控制着模型的训练和测试阶段,并规定了学习的方法和学习的参数。
The solver orchestrates (安排)model optimization by coordinating(协调) the network’s forward inference and backward gradients to form(产生) parameter updates that attempt to improve the loss.
The Solver optimizes a model by:
(1)calls network forward to compute the output and loss(前向)
(2)calls network backward to compute the gradients(反向)
(3)incorporates the gradients into parameter updates according to the solver method (权重更新)
(4)updates the solver state according to learning rate, history, and method(分离解耦)

The Caffe solvers mathod are:

Stochastic Gradient Descent (type: "SGD"),#随机梯度下降
AdaDelta (type: "AdaDelta"),
Adaptive Gradient (type: "AdaGrad"),
Adam (type: "Adam"),
Nesterov’s Accelerated Gradient (type: "Nesterov") and
RMSprop (type: "RMSProp")

The solver 作用
1. 参数字典
2. 迭代优化参数
3. 周期性的得到测试结果
4. snapshots the model and solver state throughout the optimization(?)

Snapshotting and Resuming
The weight snapshots export the learned model while the solver snapshots allow training to be resumed from a given point.

Solver::Snapshot()和Solver::SnapshotSolverState()保存指定迭代次数中的参数并停止,相当于断点,由Solver::Restore()和Solver::RestoreSolverState()继续运行。
参见博文http://blog.csdn.net/u013508213/article/details/53208434#solver

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值