当前位置:网站首页>PyTorch 9. optimizer
PyTorch 9. optimizer
2022-04-23 07:28:00 【DCGJ666】
PyTorch 9. Optimizer
Optimizer
pytorch Optimizer : Manage and update the values of learnable parameters in the model , Make the model output closer to the real label
Basic attributes :
defaults: Optimizer parameters
state: Parameter cache , Such as momentum The cache of
param_groups: Managed parameter groups
_step_count: Record the number of updates , Use... In learning rate adjustment
operation :
zero_grad(): Clear the gradient of managed parameters
step(): Perform one step update
add_param_group(): Add parameter group
state_dict(): Get the optimizer's current state information dictionary
load_state_dict(): Load state information dictionary
- nn.optim.SGD
main parameter :
params: Managed parameter groups
lr: Initial learning rate
momentum: Momentum coefficient
weight_decay:L2 Regularization coefficient
nesterov: Whether to adopt NAG, Nesterov gradient optimization method - nn.optim.Adagrad
Adaptive learning rate gradient descent method - nn.optim.RMSprop
Adagrad Improvement - nn.optim.Adam
RMSprop combination Momentum - nn.optim.AdamW
Weighted adam
版权声明
本文为[DCGJ666]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230611344012.html
边栏推荐
- Gephi tutorial [1] installation
- Gather, unsqueeze and other operators when PTH is converted to onnx
- [3D shape reconstruction series] implicit functions in feature space for 3D shape reconstruction and completion
- 【Tensorflow】共享机制
- Systrace 解析
- GIS实战应用案例100篇(五十一)-ArcGIS中根据指定的范围计算nc文件逐时次空间平均值的方法
- GIS实战应用案例100篇(三十四)-拼接2020globeland30
- . net encountered failed to decode downloaded font while loading font:
- Device Tree 详解
- “Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
猜你喜欢
WinForm scroll bar beautification
Detailed explanation of unwind stack backtracking
重大安保事件应急通信系统解决方案
F. The wonderful use of pad
【期刊会议系列】IEEE系列模板下载指南
Gephi tutorial [1] installation
Visual studio 2019 installation and use
带低压报警的51单片机太阳能充电宝设计与制作(完整代码资料)
【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds
[Point Cloud Series] SG - Gan: Adversarial Self - attachment GCN for Point Cloud Topological parts Generation
随机推荐
【技术规范】:如何写好技术文档?
Solution to slow compilation speed of Xcode
AMBA协议学习小记
【点云系列】FoldingNet:Point Cloud Auto encoder via Deep Grid Deformation
面试总结之特征工程
【点云系列】Fully-Convolutional geometric features
【点云系列】Multi-view Neural Human Rendering (NHR)
PyTorch 19. PyTorch中相似操作的区别与联系
Use originpro express for free
Detailed explanation of unwind stack backtracking
机器学习——模型优化
The simplest and complete example of libwebsockets
[8] Assertion failed: dims.nbDims == 4 || dims.nbDims == 5
Mysql database installation and configuration details
FATFS FAT32学习小记
【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds
【点云系列】Relationship-based Point Cloud Completion
《Attention in Natural Language Processing》翻译
【无标题】PID控制TT编码器电机
Paddleocr image text extraction