MKLMultiClassGLPK is a helper class for MKLMultiClass.
it solves the corresponding linear problem arising in SIP formulation for MKL using glpk
Definition at line 29 of file MKLMultiClassGLPK.h.
Public Member Functions | |
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 |
Protected Member Functions | |
MKLMultiClassGLPK (MKLMultiClassGLPK &gl) | |
MKLMultiClassGLPK | operator= (MKLMultiClassGLPK &gl) |
Protected Attributes | |
int32_t | numkernels |
glp_prob * | linearproblem |
Class default Constructor
Definition at line 15 of file MKLMultiClassGLPK.cpp.
~MKLMultiClassGLPK | ( | ) | [virtual] |
Class default Destructor
Definition at line 24 of file MKLMultiClassGLPK.cpp.
MKLMultiClassGLPK | ( | MKLMultiClassGLPK & | gl | ) | [protected] |
Class Copy Constructor protected to avoid its usage because member glp_prob* linearproblem; from GLPK package is not copyable
Definition at line 44 of file MKLMultiClassGLPK.cpp.
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 for all kernels | |
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. |
Reimplemented from MKLMultiClassOptimizationBase.
Definition at line 118 of file MKLMultiClassGLPK.cpp.
void computeweights | ( | std::vector< float64_t > & | weights2 | ) | [virtual] |
computes MKL weights
weights2 | stores the new weights |
Reimplemented from MKLMultiClassOptimizationBase.
Definition at line 167 of file MKLMultiClassGLPK.cpp.
virtual const char* get_name | ( | void | ) | const [virtual] |
Reimplemented from MKLMultiClassOptimizationBase.
Definition at line 68 of file MKLMultiClassGLPK.h.
MKLMultiClassGLPK operator= | ( | MKLMultiClassGLPK & | gl | ) | [protected] |
Class Assignment operator protected to avoid its usage because member glp_prob* linearproblem; from GLPK package is not copyable
Definition at line 36 of file MKLMultiClassGLPK.cpp.
void setup | ( | const int32_t | numkernels2 | ) | [virtual] |
initializes GLPK LP sover
numkernels2 | is the number of kernels |
Reimplemented from MKLMultiClassOptimizationBase.
Definition at line 52 of file MKLMultiClassGLPK.cpp.
glp_prob* linearproblem [protected] |
GLPK data structure
Definition at line 90 of file MKLMultiClassGLPK.h.
int32_t numkernels [protected] |
stores the number of kernels which acts as a parameter for the LP
Definition at line 87 of file MKLMultiClassGLPK.h.