CGMNPMKL is a class for L1-norm multiclass MKL.
L1-norm MKL for the multiclass svm CGMNPSVM kit is to be used as all other SVM routines with the set_kernel, set_C, set_labels, set_epsilon its own parameters are thresh (L2 norm of subkernel weights for termination) and maxiters (how many silp iterations at most in order to force termination)
This is based on the free solver glpk solver.
check what options to pass from CGMNPMKL to CGMNPSVM
set C_mkl?
clear types (float64_t, size_t, int)
Definition at line 43 of file gmnpmkl.h.
Public Member Functions | |
lpwrapper () | |
virtual | ~lpwrapper () |
virtual void | setup (const int32_t numkernels) |
virtual void | addconstraint (const ::std::vector< float64_t > &normw2, const float64_t sumofpositivealphas) |
virtual void | computeweights (std::vector< float64_t > &weights2) |
Public Attributes | |
int32_t | lpwrappertype |
lpwrapper::lpwrapper | ( | ) |
Definition at line 13 of file gmnpmkl.cpp.
lpwrapper::~lpwrapper | ( | ) | [virtual] |
Definition at line 18 of file gmnpmkl.cpp.
void lpwrapper::addconstraint | ( | const ::std::vector< float64_t > & | normw2, | |
const float64_t | sumofpositivealphas | |||
) | [virtual] |
takes a set of and
and adds constraint32_t to the working set
Reimplemented in glpkwrapper4CGMNPMKL.
Definition at line 28 of file gmnpmkl.cpp.
void lpwrapper::computeweights | ( | std::vector< float64_t > & | weights2 | ) | [virtual] |
Reimplemented in glpkwrapper4CGMNPMKL.
Definition at line 35 of file gmnpmkl.cpp.
void lpwrapper::setup | ( | const int32_t | numkernels | ) | [virtual] |
Reimplemented in glpkwrapper4CGMNPMKL.
Definition at line 23 of file gmnpmkl.cpp.
int32_t lpwrapper::lpwrappertype |