SHOGUN v0.9.0
公有成员 | 保护成员 | 保护属性
CSparseSpatialSampleStringKernel类参考

详细描述

Sparse Spatial Sample String Kernel by Pavel Kuksa <pkuksa@cs.rutgers.edu> and Vladimir Pavlovic <vladimir@cs.rutgers.edu>

在文件SparseSpatialSampleStringKernel.h30行定义。

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

所有成员的列表。

公有成员

 CSparseSpatialSampleStringKernel ()
 CSparseSpatialSampleStringKernel (CStringFeatures< char > *l, CStringFeatures< char > *r)
virtual ~CSparseSpatialSampleStringKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual void cleanup ()
virtual EKernelType get_kernel_type ()
void set_d (int32_t max_distance)
int32_t get_d ()
void set_t (int32_t sequence_length)
int32_t get_t ()
virtual const char * get_name () const

保护成员

virtual float64_t compute (int32_t idx_a, int32_t idx_b)
SSKFeaturesextractTriple (int **S, int *len, int nStr, int d1, int d2)
SSKFeaturesextractDouble (int **S, int *len, int nStr, int d1)
void compute_double (int32_t idx_a, int32_t idx_b)
void compute_triple (int32_t idx_a, int32_t idx_b)
int * cntsrtna (int *sx, int k, int r, int na)
void countAndUpdate (int *outK, int *sx, int *g, int k, int r, int nStr)

保护属性

int32_t t
int32_t d
bool isVerbose

构造及析构函数文档

constructor

在文件SparseSpatialSampleStringKernel.cpp23行定义。

constructor

参数:
lfeatures of left-hand side
rfeatures of right-hand side

在文件SparseSpatialSampleStringKernel.cpp28行定义。

在文件SparseSpatialSampleStringKernel.cpp45行定义。


成员函数文档

void cleanup ( ) [virtual]

clean up kernel

重载CKernel

在文件SparseSpatialSampleStringKernel.cpp40行定义。

int * cntsrtna ( int *  sx,
int  k,
int  r,
int  na 
) [protected]

在文件SparseSpatialSampleStringKernel.cpp337行定义。

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_aindex a
idx_bindex b
返回:
computed kernel function at indices a,b

实现了CKernel

在文件SparseSpatialSampleStringKernel.cpp372行定义。

void compute_double ( int32_t  idx_a,
int32_t  idx_b 
) [protected]

在文件SparseSpatialSampleStringKernel.cpp125行定义。

void compute_triple ( int32_t  idx_a,
int32_t  idx_b 
) [protected]

在文件SparseSpatialSampleStringKernel.cpp191行定义。

void countAndUpdate ( int *  outK,
int *  sx,
int *  g,
int  k,
int  r,
int  nStr 
) [protected]

在文件SparseSpatialSampleStringKernel.cpp268行定义。

SSKFeatures * extractDouble ( int **  S,
int *  len,
int  nStr,
int  d1 
) [protected]

在文件SparseSpatialSampleStringKernel.cpp87行定义。

SSKFeatures * extractTriple ( int **  S,
int *  len,
int  nStr,
int  d1,
int  d2 
) [protected]

在文件SparseSpatialSampleStringKernel.cpp49行定义。

int32_t get_d ( )

在文件SparseSpatialSampleStringKernel.h72行定义。

virtual EKernelType get_kernel_type ( ) [virtual]

return what type of kernel we are

返回:
kernel type SPARSESPATIALSAMPLE

实现了CStringKernel< char >

在文件SparseSpatialSampleStringKernel.h61行定义。

virtual const char* get_name ( void  ) const [virtual]

return the kernel's name

返回:
name SparseSpatialSample

重载CStringKernel< char >

在文件SparseSpatialSampleStringKernel.h92行定义。

int32_t get_t ( )

在文件SparseSpatialSampleStringKernel.h83行定义。

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

initialize kernel

参数:
lfeatures of left-hand side
rfeatures of right-hand side
返回:
if initializing was successful

重载CStringKernel< char >

在文件SparseSpatialSampleStringKernel.cpp34行定义。

void set_d ( int32_t  max_distance)

在文件SparseSpatialSampleStringKernel.h66行定义。

void set_t ( int32_t  sequence_length)

在文件SparseSpatialSampleStringKernel.h77行定义。


成员数据文档

int32_t d [protected]

parameter d of the SSSK denotes maximum allowed distance between words in the sequence

在文件SparseSpatialSampleStringKernel.h119行定义。

bool isVerbose [protected]

在文件SparseSpatialSampleStringKernel.h120行定义。

int32_t t [protected]

parameter t of the SSSK denotes how many words are considered in the sequence (valid are only 2 or 3)

在文件SparseSpatialSampleStringKernel.h115行定义。


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

SHOGUN Machine Learning Toolbox - Documentation