公有成员 | 保护属性

CDiceKernelNormalizer类参考


详细描述

DiceKernelNormalizer performs kernel normalization inspired by the Dice coefficient (see http://en.wikipedia.org/wiki/Dice's_coefficient).

\[ k'({\bf x},{\bf x'}) = \frac{2k({\bf x},{\bf x'})}{k({\bf x},{\bf x})+k({\bf x'},{\bf x'}} \]

在文件DiceKernelNormalizer.h26行定义。

继承图,类CDiceKernelNormalizer
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CDiceKernelNormalizer (bool use_opt_diag=false)
virtual ~CDiceKernelNormalizer ()
virtual bool init (CKernel *k)
virtual float64_t normalize (float64_t value, int32_t idx_lhs, int32_t idx_rhs)
virtual float64_t normalize_lhs (float64_t value, int32_t idx_lhs)
virtual float64_t normalize_rhs (float64_t value, int32_t idx_rhs)
bool alloc_and_compute_diag (CKernel *k, float64_t *&v, int32_t num)

保护属性

float64_tdiag_lhs
float64_tdiag_rhs
bool use_optimized_diagonal_computation

构造及析构函数文档

CDiceKernelNormalizer ( bool  use_opt_diag = false  ) 

default constructor

参数:
use_opt_diag - some kernels support faster diagonal compuation via compute_diag(idx), this flag enables this

在文件DiceKernelNormalizer.h33行定义。

virtual ~CDiceKernelNormalizer (  )  [virtual]

default destructor

在文件DiceKernelNormalizer.h39行定义。


成员函数文档

bool alloc_and_compute_diag ( CKernel k,
float64_t *&  v,
int32_t  num 
)

alloc and compute the vector containing the square root of the diagonal elements of this kernel.

在文件DiceKernelNormalizer.h109行定义。

virtual bool init ( CKernel k  )  [virtual]

initialization of the normalizer

参数:
k kernel

实现了CKernelNormalizer

在文件DiceKernelNormalizer.h47行定义。

virtual float64_t normalize ( float64_t  value,
int32_t  idx_lhs,
int32_t  idx_rhs 
) [virtual]

normalize the kernel value

参数:
value kernel value
idx_lhs index of left hand side vector
idx_rhs index of right hand side vector

实现了CKernelNormalizer

在文件DiceKernelNormalizer.h77行定义。

virtual float64_t normalize_lhs ( float64_t  value,
int32_t  idx_lhs 
) [virtual]

normalize only the left hand side vector

参数:
value value of a component of the left hand side feature vector
idx_lhs index of left hand side vector

实现了CKernelNormalizer

在文件DiceKernelNormalizer.h88行定义。

virtual float64_t normalize_rhs ( float64_t  value,
int32_t  idx_rhs 
) [virtual]

normalize only the right hand side vector

参数:
value value of a component of the right hand side feature vector
idx_rhs index of right hand side vector

实现了CKernelNormalizer

在文件DiceKernelNormalizer.h98行定义。


成员数据文档

float64_t* diag_lhs [protected]

diagonal left-hand side

在文件DiceKernelNormalizer.h135行定义。

float64_t* diag_rhs [protected]

diagonal right-hand side

在文件DiceKernelNormalizer.h137行定义。

flat if optimized diagonal computation is used

在文件DiceKernelNormalizer.h139行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation