|
SHOGUN
v1.1.0
|
MKLMultiClassGLPK is a helper class for MKLMultiClass.
it solves the corresponding linear problem arising in SIP formulation for MKL using glpk
Definition at line 25 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 |
Public Member Functions inherited from MKLMultiClassOptimizationBase | |
| MKLMultiClassOptimizationBase () | |
| virtual | ~MKLMultiClassOptimizationBase () |
| virtual void | set_mkl_norm (float64_t norm) |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| virtual bool | is_generic (EPrimitiveType *generic) const |
| template<class T > | |
| void | set_generic () |
| void | unset_generic () |
| virtual void | print_serializable (const char *prefix="") |
| virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
| virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
| void | set_global_io (SGIO *io) |
| SGIO * | get_global_io () |
| void | set_global_parallel (Parallel *parallel) |
| Parallel * | get_global_parallel () |
| void | set_global_version (Version *version) |
| Version * | get_global_version () |
| SGVector< char * > | get_modelsel_names () |
| char * | get_modsel_param_descr (const char *param_name) |
| index_t | get_modsel_param_index (const char *param_name) |
Protected Member Functions | |
| MKLMultiClassGLPK (MKLMultiClassGLPK &gl) | |
| MKLMultiClassGLPK | operator= (MKLMultiClassGLPK &gl) |
Protected Attributes | |
| int32_t | numkernels |
| void * | linearproblem |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Class default Constructor
Definition at line 19 of file MKLMultiClassGLPK.cpp.
|
virtual |
Class default Destructor
Definition at line 28 of file MKLMultiClassGLPK.cpp.
|
protected |
Class Copy Constructor protected to avoid its usage because member glp_prob* linearproblem; from GLPK package is not copyable
Definition at line 48 of file MKLMultiClassGLPK.cpp.
|
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 122 of file MKLMultiClassGLPK.cpp.
|
virtual |
computes MKL weights
| weights2 | stores the new weights |
Reimplemented from MKLMultiClassOptimizationBase.
Definition at line 171 of file MKLMultiClassGLPK.cpp.
|
virtual |
Reimplemented from MKLMultiClassOptimizationBase.
Definition at line 64 of file MKLMultiClassGLPK.h.
|
protected |
Class Assignment operator protected to avoid its usage because member glp_prob* linearproblem; from GLPK package is not copyable
Definition at line 40 of file MKLMultiClassGLPK.cpp.
|
virtual |
initializes GLPK LP sover
| numkernels2 | is the number of kernels |
Reimplemented from MKLMultiClassOptimizationBase.
Definition at line 56 of file MKLMultiClassGLPK.cpp.
|
protected |
GLPK data structure of type glp_prob*
Definition at line 85 of file MKLMultiClassGLPK.h.
|
protected |
stores the number of kernels which acts as a parameter for the LP
Definition at line 83 of file MKLMultiClassGLPK.h.