the objective function, used to derive
More...
#include <wb-solve.h>
the objective function, used to derive
- Author
- wangbin
- Date
- 2016-03-04
Definition at line 39 of file wb-solve.h.
§ Func()
wb::Func::Func |
( |
int |
nParamNum = 0 | ) |
|
|
inline |
§ GetExtraValues()
virtual int wb::Func::GetExtraValues |
( |
int |
k, |
|
|
double * |
pdValues |
|
) |
| |
|
inlinevirtual |
calculate extra values which will be print at each iteration
- Parameters
-
[in] | k | iteration number form 1 to ... |
[out] | pdValues | Return the values needed to be outputed. The memory is allocated outside and the maximum size = cn_exvalue_max_num |
- Returns
- return the pdValues number
Reimplemented in hrf::SAfunc, trf::SAfunc, trf::MLfunc, and hrf::MLfunc.
Definition at line 66 of file wb-solve.h.
§ GetGradient()
virtual void wb::Func::GetGradient |
( |
double * |
pdGradient | ) |
|
|
pure virtual |
§ GetParamNum()
int wb::Func::GetParamNum |
( |
| ) |
const |
|
inline |
get the paremeter number
Definition at line 52 of file wb-solve.h.
§ GetValue()
virtual double wb::Func::GetValue |
( |
| ) |
|
|
pure virtual |
§ SetParam()
virtual void wb::Func::SetParam |
( |
double * |
pdParams | ) |
|
|
pure virtual |
§ SetParamNum()
void wb::Func::SetParamNum |
( |
int |
n | ) |
|
|
inline |
setting the parameter number
Definition at line 50 of file wb-solve.h.
§ LBFGS
§ Solve
§ cn_exvalue_max_num
const int wb::Func::cn_exvalue_max_num = 100 |
|
static |
the maximu number of the values returned by GetExtrValues
Definition at line 59 of file wb-solve.h.
§ m_nParamNum
int wb::Func::m_nParamNum |
|
protected |
the parameter number
Definition at line 45 of file wb-solve.h.
§ m_pSolve
Solve* wb::Func::m_pSolve |
|
protected |
Save the solve pointor.
Definition at line 44 of file wb-solve.h.
The documentation for this class was generated from the following file:
- C:/Users/zhang/spmi/SPMILM/tools/trf/src/base/wb-solve.h