Public Member Functions | Protected Member Functions | Protected Attributes

CHistogramWordStringKernel Class Reference

Detailed Description

The HistogramWordString computes the TOP kernel on inhomogeneous Markov Chains.

Definition at line 26 of file HistogramWordStringKernel.h.

Inheritance diagram for CHistogramWordStringKernel:
Inheritance graph

List of all members.

Public Member Functions

 CHistogramWordStringKernel ()
 CHistogramWordStringKernel (int32_t size, CPluginEstimate *pie)
 CHistogramWordStringKernel (CStringFeatures< uint16_t > *l, CStringFeatures< uint16_t > *r, CPluginEstimate *pie)
virtual ~CHistogramWordStringKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual void cleanup ()
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const

Protected Member Functions

float64_t compute (int32_t idx_a, int32_t idx_b)
int32_t compute_index (int32_t position, uint16_t symbol)

Protected Attributes

int32_t num_params
int32_t num_params2
int32_t num_symbols
float64_t sum_m2_s2
bool initialized

Constructor & Destructor Documentation

default constructor

Definition at line 21 of file HistogramWordStringKernel.cpp.

CHistogramWordStringKernel ( int32_t  size,
CPluginEstimate pie 


size cache size
pie plugin estimate

Definition at line 27 of file HistogramWordStringKernel.cpp.

CHistogramWordStringKernel ( CStringFeatures< uint16_t > *  l,
CStringFeatures< uint16_t > *  r,
CPluginEstimate pie 


l features of left-hand side
r features of right-hand side
pie plugin estimate

Definition at line 36 of file HistogramWordStringKernel.cpp.

~CHistogramWordStringKernel (  )  [virtual]

Definition at line 46 of file HistogramWordStringKernel.cpp.

Member Function Documentation

void cleanup (  )  [virtual]

clean up kernel

Reimplemented from CKernel.

Definition at line 319 of file HistogramWordStringKernel.cpp.

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

Implements CKernel.

Definition at line 357 of file HistogramWordStringKernel.cpp.

int32_t compute_index ( int32_t  position,
uint16_t  symbol 
) [protected]

compute index

position position
symbol symbol
index at given position in given symbol

Definition at line 91 of file HistogramWordStringKernel.h.

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

kernel type HISTOGRAM

Implements CStringKernel< uint16_t >.

Definition at line 66 of file HistogramWordStringKernel.h.

virtual const char* get_name (  )  const [virtual]

return the kernel's name

name Histogram

Reimplemented from CStringKernel< uint16_t >.

Definition at line 72 of file HistogramWordStringKernel.h.

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

Reimplemented from CStringKernel< uint16_t >.

Definition at line 63 of file HistogramWordStringKernel.cpp.

Member Data Documentation

CPluginEstimate* estimate [protected]

plugin estimate

Definition at line 101 of file HistogramWordStringKernel.h.

bool initialized [protected]

if kernel is initialized

Definition at line 133 of file HistogramWordStringKernel.h.

float64_t* ld_mean_lhs [protected]

ld mean left-hand side

Definition at line 114 of file HistogramWordStringKernel.h.

float64_t* ld_mean_rhs [protected]

ld mean right-hand side

Definition at line 116 of file HistogramWordStringKernel.h.

float64_t* mean [protected]


Definition at line 104 of file HistogramWordStringKernel.h.

int32_t num_params [protected]

number of parameters

Definition at line 124 of file HistogramWordStringKernel.h.

int32_t num_params2 [protected]

number of parameters2

Definition at line 126 of file HistogramWordStringKernel.h.

int32_t num_symbols [protected]

number of symbols

Definition at line 128 of file HistogramWordStringKernel.h.

float64_t* plo_lhs [protected]

plo left-hand side

Definition at line 119 of file HistogramWordStringKernel.h.

float64_t* plo_rhs [protected]

plo right-hand side

Definition at line 121 of file HistogramWordStringKernel.h.

float64_t* sqrtdiag_lhs [protected]

sqrt diagonal of left-hand side

Definition at line 109 of file HistogramWordStringKernel.h.

float64_t* sqrtdiag_rhs [protected]

sqrt diagonal of right-hand side

Definition at line 111 of file HistogramWordStringKernel.h.

float64_t sum_m2_s2 [protected]

sum m2 s2

Definition at line 130 of file HistogramWordStringKernel.h.

float64_t* variance [protected]


Definition at line 106 of file HistogramWordStringKernel.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation