SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
MMDKernelSelectionComb.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) 2012-2013 Heiko Strathmann
8  */
9 
10 #ifndef __MMDKERNELSELECTIONCOMB_H_
11 #define __MMDKERNELSELECTIONCOMB_H_
12 
13 #include <shogun/lib/config.h>
14 
16 #include <shogun/lib/SGMatrix.h>
17 #include <shogun/lib/external/libqp.h>
18 
19 namespace shogun
20 {
21 
22 class CLinearTimeMMD;
23 
29 {
30 public:
31 
34 
41 
43  virtual ~CMMDKernelSelectionComb();
44 
50  virtual CKernel* select_kernel();
51 
53  virtual const char* get_name() const=0;
54 
55 protected:
69 
71  static const float64_t* get_Q_col(uint32_t i);
72 
74  static void print_state(libqp_state_T state);
75 
78 
81 
84 
87 
88 private:
90  void init();
91 };
92 
93 }
94 
95 #endif /* __MMDKERNELSELECTIONCOMB_H_ */
static SGMatrix< float64_t > m_Q
int32_t index_t
Definition: common.h:62
virtual SGVector< float64_t > solve_optimization(SGVector< float64_t > mmds)
Base class for kernel selection for MMD-based two-sample test statistic implementations. Provides abstract methods for selecting kernels and computing criteria or kernel weights for the implemented method. In order to implement new methods for kernel selection, simply write a new implementation of this class.
Kernel two sample test base class. Provides an interface for performing a two-sample test using a ker...
static void print_state(libqp_state_T state)
virtual const char * get_name() const =0
double float64_t
Definition: common.h:50
static const float64_t * get_Q_col(uint32_t i)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The Kernel base class.
Definition: Kernel.h:158
Base class for kernel selection of combined kernels. Given an MMD instance whose underlying kernel is...

SHOGUN 机器学习工具包 - 项目文档