SHOGUN  v3.0.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
MKLMulticlassGLPK.h
浏览该文件的文档.
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  * Update to patch 0.10.0 - thanks to Eric aka Yoo (thereisnoknife@gmail.com)
11  *
12  */
13 
14 #ifndef MKLMulticlassGLPK_H_
15 #define MKLMulticlassGLPK_H_
16 
17 #include <vector>
18 #include <shogun/base/SGObject.h>
20 
21 namespace shogun
22 {
29 {
30 public:
38  virtual ~MKLMulticlassGLPK();
39 
46  virtual void setup(const int32_t numkernels2);
47 
56  virtual void addconstraint(const ::std::vector<float64_t> & normw2,
57  const float64_t sumofpositivealphas);
58 
64  virtual void computeweights(std::vector<float64_t> & weights2);
65 
67  virtual const char* get_name() const { return "MKLMulticlassGLPK"; }
68 
69 protected:
80 
81 protected:
83  int32_t numkernels;
86 };
87 }
88 
89 #endif
virtual void computeweights(std::vector< float64_t > &weights2)
MKLMulticlassGLPK is a helper class for MKLMulticlass.
double float64_t
Definition: common.h:48
MKLMulticlassOptimizationBase is a helper class for MKLMulticlass.
virtual const char * get_name() const
MKLMulticlassGLPK operator=(MKLMulticlassGLPK &gl)
virtual void addconstraint(const ::std::vector< float64_t > &normw2, const float64_t sumofpositivealphas)
virtual void setup(const int32_t numkernels2)

SHOGUN Machine Learning Toolbox - Documentation