公有成员 | 保护成员 | 保护属性

CLinearByteKernel类参考


详细描述

Computes the standard linear kernel on dense byte valued features.

Formally, it computes

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

在文件LinearByteKernel.h28行定义。

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

所有成员的列表。

公有成员

 CLinearByteKernel ()
 CLinearByteKernel (CSimpleFeatures< uint8_t > *l, CSimpleFeatures< uint8_t > *r)
virtual ~CLinearByteKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual void cleanup ()
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const
virtual bool init_optimization (int32_t num_suppvec, int32_t *sv_idx, float64_t *alphas)
virtual bool delete_optimization ()
virtual float64_t compute_optimized (int32_t idx)
virtual void clear_normal ()
virtual void add_to_normal (int32_t idx, float64_t weight)

保护成员

virtual float64_t compute (int32_t idx_a, int32_t idx_b)

保护属性

float64_tnormal

构造及析构函数文档

constructor

在文件LinearByteKernel.cpp19行定义。

CLinearByteKernel ( CSimpleFeatures< uint8_t > *  l,
CSimpleFeatures< uint8_t > *  r 
)

constructor

参数:
l features of left-hand side
r features of right-hand side

在文件LinearByteKernel.cpp24行定义。

~CLinearByteKernel (  )  [virtual]

在文件LinearByteKernel.cpp30行定义。


成员函数文档

void add_to_normal ( int32_t  idx,
float64_t  weight 
) [virtual]

add to normal vector

参数:
idx where to add
weight what to add

重载CKernel

在文件LinearByteKernel.cpp56行定义。

void cleanup (  )  [virtual]

clean up kernel

重载CKernel

在文件LinearByteKernel.cpp41行定义。

void clear_normal (  )  [virtual]

clear normal vector

重载CKernel

在文件LinearByteKernel.cpp48行定义。

float64_t compute ( int32_t  idx_a,
int32_t  idx_b 
) [protected, virtual]

compute kernel function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object

参数:
idx_a index a
idx_b index b
返回:
computed kernel function at indices a,b

实现了CKernel

在文件LinearByteKernel.cpp68行定义。

float64_t compute_optimized ( int32_t  idx  )  [virtual]

compute optimized

参数:
idx index to compute
返回:
optimized value at given index

重载CKernel

在文件LinearByteKernel.cpp123行定义。

bool delete_optimization (  )  [virtual]

delete optimization

返回:
if deleting was successful

重载CKernel

在文件LinearByteKernel.cpp113行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type LINEAR

实现了CKernel

在文件LinearByteKernel.h59行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name FixedDegree

实现了CSGObject

在文件LinearByteKernel.h65行定义。

bool init ( CFeatures l,
CFeatures r 
) [virtual]

initialize kernel

参数:
l features of left-hand side
r features of right-hand side
返回:
if initializing was successful

重载CSimpleKernel< uint8_t >

在文件LinearByteKernel.cpp35行定义。

bool init_optimization ( int32_t  num_suppvec,
int32_t *  sv_idx,
float64_t alphas 
) [virtual]

optimizable kernel, i.e. precompute normal vector and as phi(x) = x do scalar product in input space

参数:
num_suppvec number of support vectors
sv_idx support vector index
alphas alphas
返回:
if optimization was successful

重载CKernel

在文件LinearByteKernel.cpp85行定义。


成员数据文档

float64_t* normal [protected]

normal vector (used in case of optimized kernel)

在文件LinearByteKernel.h114行定义。


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

SHOGUN Machine Learning Toolbox - Documentation