SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
MKLMulticlassOptimizationBase.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2009 Alexander Binder
8  * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef MKLMulticlassOPTIMIZATIONBASE_H_
12 #define MKLMulticlassOPTIMIZATIONBASE_H_
13 
14 #include <vector>
15 #include <shogun/base/SGObject.h>
16 
17 
18 namespace shogun
19 {
26 {
27 public:
36 
43  virtual void setup(const int32_t numkernels2);
44 
53  virtual void addconstraint(const ::std::vector<float64_t> & normw2,
54  const float64_t sumofpositivealphas);
55 
61  virtual void computeweights(std::vector<float64_t> & weights2);
62 
64  virtual const char* get_name() const { return "MKLMulticlassOptimizationBase"; }
65 
69  virtual void set_mkl_norm(float64_t norm);
70 
71 protected:
72 
73 
74 protected:
75 
76 };
77 }
78 
79 #endif
double norm(double *v, double p, int n)
Definition: epph.cpp:452
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:102
virtual void setup(const int32_t numkernels2)
virtual void addconstraint(const ::std::vector< float64_t > &normw2, const float64_t sumofpositivealphas)
double float64_t
Definition: common.h:48
MKLMulticlassOptimizationBase is a helper class for MKLMulticlass.
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
virtual void computeweights(std::vector< float64_t > &weights2)

SHOGUN Machine Learning Toolbox - Documentation