公有成员 | 保护属性

CSqrtDiagKernelNormalizer类参考


详细描述

SqrtDiagKernelNormalizer divides by the Square Root of the product of the diagonal elements.

This effectively normalizes the vectors in feature space to norm 1 (see CSqrtDiagKernelNormalizer)

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

在文件SqrtDiagKernelNormalizer.h29行定义。

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

所有成员的列表。

公有成员

 CSqrtDiagKernelNormalizer (bool use_opt_diag=false)
virtual ~CSqrtDiagKernelNormalizer ()
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)
virtual const char * get_name () const

保护属性

float64_tsqrtdiag_lhs
float64_tsqrtdiag_rhs
bool use_optimized_diagonal_computation

构造及析构函数文档

CSqrtDiagKernelNormalizer ( bool  use_opt_diag = false )

default constructor

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

在文件SqrtDiagKernelNormalizer.h36行定义。

virtual ~CSqrtDiagKernelNormalizer (  ) [virtual]

default destructor

在文件SqrtDiagKernelNormalizer.h42行定义。


成员函数文档

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.

在文件SqrtDiagKernelNormalizer.h110行定义。

virtual const char* get_name (  ) const [virtual]
返回:
object name

实现了CSGObject

在文件SqrtDiagKernelNormalizer.h135行定义。

virtual bool init ( CKernel k ) [virtual]

initialization of the normalizer

参数:
kkernel

实现了CKernelNormalizer

在文件SqrtDiagKernelNormalizer.h50行定义。

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

normalize the kernel value

参数:
valuekernel value
idx_lhsindex of left hand side vector
idx_rhsindex of right hand side vector

实现了CKernelNormalizer

在文件SqrtDiagKernelNormalizer.h80行定义。

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

normalize only the left hand side vector

参数:
valuevalue of a component of the left hand side feature vector
idx_lhsindex of left hand side vector

实现了CKernelNormalizer

在文件SqrtDiagKernelNormalizer.h91行定义。

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

normalize only the right hand side vector

参数:
valuevalue of a component of the right hand side feature vector
idx_rhsindex of right hand side vector

实现了CKernelNormalizer

在文件SqrtDiagKernelNormalizer.h100行定义。


成员数据文档

float64_t* sqrtdiag_lhs [protected]

sqrt diagonal left-hand side

在文件SqrtDiagKernelNormalizer.h139行定义。

float64_t* sqrtdiag_rhs [protected]

sqrt diagonal right-hand side

在文件SqrtDiagKernelNormalizer.h141行定义。

f optimized diagonal computation is used

在文件SqrtDiagKernelNormalizer.h143行定义。


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

SHOGUN Machine Learning Toolbox - Documentation