MKLMultiClassGLPK is a helper class for MKLMultiClass.
it solves the corresponding linear problem arising in SIP formulation for MKL using glpk
在文件MKLMultiClassGLPK.h第29行定义。
公有成员 | |
MKLMultiClassGLPK () | |
virtual | ~MKLMultiClassGLPK () |
virtual void | setup (const int32_t numkernels2) |
virtual void | addconstraint (const ::std::vector< float64_t > &normw2, const float64_t sumofpositivealphas) |
virtual void | computeweights (std::vector< float64_t > &weights2) |
virtual const char * | get_name () const |
保护成员 | |
MKLMultiClassGLPK (MKLMultiClassGLPK &gl) | |
MKLMultiClassGLPK | operator= (MKLMultiClassGLPK &gl) |
保护属性 | |
int32_t | numkernels |
glp_prob * | linearproblem |
Class default Constructor
在文件MKLMultiClassGLPK.cpp第15行定义。
~MKLMultiClassGLPK | ( | ) | [virtual] |
Class default Destructor
在文件MKLMultiClassGLPK.cpp第24行定义。
MKLMultiClassGLPK | ( | MKLMultiClassGLPK & | gl ) | [protected] |
Class Copy Constructor protected to avoid its usage because member glp_prob* linearproblem; from GLPK package is not copyable
在文件MKLMultiClassGLPK.cpp第44行定义。
void addconstraint | ( | const ::std::vector< float64_t > & | normw2, |
const float64_t | sumofpositivealphas | ||
) | [virtual] |
adds a constraint to the LP arising in L1 MKL based on two parameters
normw2 | is the vector of ![]() |
sumofpositivealphas | is a term depending on alphas, labels and biases, see in the function float64_t getsumofsignfreealphas() from MKLMultiClass.h, it depends on the formulation of the underlying GMNPSVM. |
重载MKLMultiClassOptimizationBase。
在文件MKLMultiClassGLPK.cpp第118行定义。
void computeweights | ( | std::vector< float64_t > & | weights2 ) | [virtual] |
computes MKL weights
weights2 | stores the new weights |
重载MKLMultiClassOptimizationBase。
在文件MKLMultiClassGLPK.cpp第167行定义。
virtual const char* get_name | ( | ) | const [virtual] |
MKLMultiClassGLPK operator= | ( | MKLMultiClassGLPK & | gl ) | [protected] |
Class Assignment operator protected to avoid its usage because member glp_prob* linearproblem; from GLPK package is not copyable
在文件MKLMultiClassGLPK.cpp第36行定义。
void setup | ( | const int32_t | numkernels2 ) | [virtual] |
initializes GLPK LP sover
numkernels2 | is the number of kernels |
重载MKLMultiClassOptimizationBase。
在文件MKLMultiClassGLPK.cpp第52行定义。
glp_prob* linearproblem [protected] |
GLPK data structure
在文件MKLMultiClassGLPK.h第90行定义。
int32_t numkernels [protected] |
stores the number of kernels which acts as a parameter for the LP
在文件MKLMultiClassGLPK.h第87行定义。