Lenet_solver超参数解析

本文详细解析了Lenet模型的超参数,包括test_iter与batch_size的关系,学习率设置如base_lr、momentum和weight_decay,以及学习率修改策略如fixed、step、exp等不同方式的工作原理,旨在帮助理解模型训练过程中的参数调整和优化方法。
摘要由CSDN通过智能技术生成
# The train/test net protocol buffer definition   //对训练和测试网络的定义
//网络的路径,可以使用绝对路径或者相对路径
net: "examples/mnist/lenet_train_test.prototxt"   //位置
//test_iter参数定义训练流程中前向传播的总批次数
# test_iter specifies how many forward passes the test should carry out.
# In the case of MNIST, we have test batch size 100 and 100 test iterations,
# covering the full 10,000 testing images.
 test_iter: 100  // 进行100次前向计算,test_iter*test batch size =10000
//测试间隔,训练没迭代500次后执行一次测试(测试是为了获得当前模型的训练精度)
# Carry out testing every 500 training iterations.
test_interval: 500
 
# The base learning rate, momentum and the weight decay of the network.
base_lr: 0.01//初始基础学习率
momentum: 0.9//冲量
weight_decay: 0.0005//正则化系数
# The learning rate policy//学习率修改策略
lr_policy: "inv"
gamma: 0.0001
power: 0.75
//每迭代100次显示一次执行结果
# Display every 100 iterations
display: 100
//最大迭代次数
# The maximum number of iterations
max_iter: 10000
//生成中间结果,记录迭代5000次之后结果,定义caffeModel
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

晴天stick

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值