This is a base class for descend based correction method.
The interfact will be used in DescendUpdaterWithCorrection::update_variable() An example of descend based correction is NesterovMomentumCorrection
在文件 DescendCorrection.h 第 57 行定义.
Public 成员函数 | |
DescendCorrection () | |
virtual | ~DescendCorrection () |
virtual void | set_correction_weight (float64_t weight) |
virtual DescendPair | get_corrected_descend_direction (float64_t negative_descend_direction, index_t idx)=0 |
virtual void | update_context (CMinimizerContext *context)=0 |
virtual void | load_from_context (CMinimizerContext *context)=0 |
Protected 属性 | |
float64_t | m_weight |
在文件 DescendCorrection.h 第 62 行定义.
|
virtual |
在文件 DescendCorrection.h 第 68 行定义.
|
pure virtual |
Get corrected descend direction
negative_descend_direction | the negative descend direction |
idx | the index of the direction |
在 AdaptMomentumCorrection, NesterovMomentumCorrection, MomentumCorrection , 以及 StandardMomentumCorrection 内被实现.
|
pure virtual |
Load the given context object to restore mutable variables
This method will be called by DescendUpdaterWithCorrection::load_from_context(CMinimizerContext* context)
context | a context object |
在 AdaptMomentumCorrection , 以及 MomentumCorrection 内被实现.
|
virtual |
Set the weight used in descend correction
param weight the weight
被 AdaptMomentumCorrection 重载.
在文件 DescendCorrection.h 第 74 行定义.
|
pure virtual |
Update a context object to store mutable variables used in descend update
This method will be called by DescendUpdaterWithCorrection::update_context()
context | a context object |
在 AdaptMomentumCorrection , 以及 MomentumCorrection 内被实现.
|
protected |
weight of correction
在文件 DescendCorrection.h 第 110 行定义.