SHOGUN
4.1.0
|
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
Definition at line 57 of file DescendCorrection.h.
Public Member Functions | |
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 Attributes | |
float64_t | m_weight |
Definition at line 62 of file DescendCorrection.h.
|
virtual |
Definition at line 68 of file DescendCorrection.h.
|
pure virtual |
Get corrected descend direction
negative_descend_direction | the negative descend direction |
idx | the index of the direction |
Implemented in AdaptMomentumCorrection, NesterovMomentumCorrection, MomentumCorrection, and 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 |
Implemented in AdaptMomentumCorrection, and MomentumCorrection.
|
virtual |
Set the weight used in descend correction
param weight the weight
Reimplemented in AdaptMomentumCorrection.
Definition at line 74 of file DescendCorrection.h.
|
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 |
Implemented in AdaptMomentumCorrection, and MomentumCorrection.
|
protected |
weight of correction
Definition at line 110 of file DescendCorrection.h.