lpwrapper Class Reference


Detailed Description

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.

Todo:

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.

Inheritance diagram for lpwrapper:
Inheritance graph
[legend]

List of all members.

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

Constructor & Destructor Documentation

lpwrapper::lpwrapper (  ) 

Definition at line 13 of file gmnpmkl.cpp.

lpwrapper::~lpwrapper (  )  [virtual]

Definition at line 18 of file gmnpmkl.cpp.


Member Function Documentation

void lpwrapper::addconstraint ( const ::std::vector< float64_t > &  normw2,
const float64_t  sumofpositivealphas 
) [virtual]

takes a set of $\alpha^t H \alpha$ and $-\sum \alpha$ and adds constraint32_t to the working set $\theta <= \beta^(1) + -\sum \alpha$

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.


Member Data Documentation

Definition at line 46 of file gmnpmkl.h.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation