This implements the const learning rate class for a descent-based minimizer.
This class gives a const learning rate during descent update.
在文件 ConstLearningRate.h 第 45 行定义.
Public 成员函数 | |
ConstLearningRate () | |
virtual | ~ConstLearningRate () |
virtual void | set_const_learning_rate (float64_t learning_rate) |
virtual float64_t | get_learning_rate (int32_t iter_counter) |
virtual void | update_context (CMinimizerContext *context) |
virtual void | load_from_context (CMinimizerContext *context) |
Protected 属性 | |
float64_t | m_const_learning_rate |
Constructor
在文件 ConstLearningRate.h 第 49 行定义.
|
virtual |
Destructor
在文件 ConstLearningRate.h 第 52 行定义.
|
virtual |
Get the learning rate for descent direction Note that the learning rate usually is positive
iter_counter | the number of iterations |
实现了 LearningRate.
在文件 ConstLearningRate.h 第 72 行定义.
|
virtual |
Return a context object which stores mutable variables Usually it is used in serialization.
实现了 LearningRate.
在文件 ConstLearningRate.h 第 92 行定义.
|
virtual |
Set the const learning rate
learning_rate | learning_rate must be positive and usually is not greater than 1.0 |
在文件 ConstLearningRate.h 第 58 行定义.
|
virtual |
Update a context object to store mutable variables
context | a context object |
实现了 LearningRate.
在文件 ConstLearningRate.h 第 82 行定义.
|
protected |
const_learning_rate
在文件 ConstLearningRate.h 第 100 行定义.