This implements the P-norm mapping/projection function.
Reference: Gentile, Claudio. "The robustness of the p-norm algorithms." Machine Learning 53.3 (2003): 265-299.
在文件 PNormMappingFunction.h 第 45 行定义.
Public 成员函数 | |
PNormMappingFunction () | |
virtual | ~PNormMappingFunction () |
virtual void | set_norm (float64_t p) |
virtual SGVector< float64_t > | get_dual_variable (SGVector< float64_t > variable) |
virtual void | update_variable (SGVector< float64_t > variable, SGVector< float64_t > dual_variable) |
virtual void | update_context (CMinimizerContext *context) |
virtual void | load_from_context (CMinimizerContext *context) |
Protected 成员函数 | |
virtual void | projection (SGVector< float64_t > input, SGVector< float64_t > output, float64_t degree) |
Protected 属性 | |
float64_t | m_p |
在文件 PNormMappingFunction.h 第 48 行定义.
|
virtual |
在文件 PNormMappingFunction.h 第 53 行定义.
Get dual variable
variable | primal variable |
实现了 MappingFunction.
在文件 PNormMappingFunction.h 第 74 行定义.
|
virtual |
Load the given context object to restore mutable variables
This method will be called by SMDMinimizer::load_from_context(CMinimizerContext* context)
context | a context object |
实现了 MappingFunction.
在文件 PNormMappingFunction.h 第 112 行定义.
|
protectedvirtual |
Project the input variable
input | input variable |
output | store the result |
degree | the parameter of the projection |
在文件 PNormMappingFunction.h 第 126 行定义.
|
virtual |
|
virtual |
Update a context object to store mutable variables used in learning rate
This method will be called by SMDMinimizer::update_context()
context | a context object |
实现了 MappingFunction.
在文件 PNormMappingFunction.h 第 101 行定义.
|
virtual |
Update primal variable in place given dual variable
variable | primal variable to be updated |
dual_variable | dual variable are known |
实现了 MappingFunction.
在文件 PNormMappingFunction.h 第 88 行定义.
|
protected |
P-norm
在文件 PNormMappingFunction.h 第 118 行定义.