SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 <shogun/lib/config.h>
15 
16 #include <vector>
17 #include <shogun/base/SGObject.h>
18 
19 
20 namespace shogun
21 {
28 {
29 public:
38 
45  virtual void setup(const int32_t numkernels2);
46 
55  virtual void addconstraint(const ::std::vector<float64_t> & normw2,
56  const float64_t sumofpositivealphas);
57 
63  virtual void computeweights(std::vector<float64_t> & weights2);
64 
66  virtual const char* get_name() const { return "MKLMulticlassOptimizationBase"; }
67 
71  virtual void set_mkl_norm(float64_t norm);
72 
73 protected:
74 
75 
76 protected:
77 
78 };
79 }
80 
81 #endif

SHOGUN Machine Learning Toolbox - Documentation