CFKFeatures类参考


详细描述

The class FKFeatures implements Fischer kernel features obtained from two Hidden Markov models.

It was used in

K. Tsuda, M. Kawanabe, G. Raetsch, S. Sonnenburg, and K.R. Mueller. A new discriminative kernel from probabilistic models. Neural Computation, 14:2397-2414, 2002.

which also has the details.

Note that FK-features are computed on the fly, so to be effective feature caching should be enabled.

It inherits its functionality from CSimpleFeatures, which should be consulted for further reference.

在文件FKFeatures.h41行定义。

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

所有成员的列表。

公有成员

 CFKFeatures (int32_t size, CHMM *p, CHMM *n)
 CFKFeatures (const CFKFeatures &orig)
virtual ~CFKFeatures ()
void set_models (CHMM *p, CHMM *n)
void set_a (float64_t a)
float64_t get_a ()
virtual float64_tset_feature_matrix ()
float64_t set_opt_a (float64_t a=-1)
float64_t get_weight_a ()
virtual const char * get_name () const

保护成员

virtual float64_tcompute_feature_vector (int32_t num, int32_t &len, float64_t *target=NULL)
void compute_feature_vector (float64_t *addr, int32_t num, int32_t &len)
float64_t deriv_a (float64_t a, int32_t dimension=-1)

保护属性

CHMMpos
CHMMneg
float64_tpos_prob
float64_tneg_prob
float64_t weight_a

构造及析构函数文档

CFKFeatures ( int32_t  size,
CHMM p,
CHMM n 
)

constructor

参数:
size cache size
p positive HMM
n negative HMM

在文件FKFeatures.cpp18行定义。

CFKFeatures ( const CFKFeatures orig  ) 

copy constructor

在文件FKFeatures.cpp27行定义。

~CFKFeatures (  )  [virtual]

在文件FKFeatures.cpp32行定义。


成员函数文档

void compute_feature_vector ( float64_t addr,
int32_t  num,
int32_t &  len 
) [protected]

computes the feature vector to the address addr

参数:
addr address
num num
len len

在文件FKFeatures.cpp163行定义。

float64_t * compute_feature_vector ( int32_t  num,
int32_t &  len,
float64_t target = NULL 
) [protected, virtual]

compute feature vector

参数:
num num
len len
target 
返回:
something floaty

重载CSimpleFeatures< float64_t >

在文件FKFeatures.cpp143行定义。

float64_t deriv_a ( float64_t  a,
int32_t  dimension = -1 
) [protected]

deriv a

参数:
a a
dimension dimension

在文件FKFeatures.cpp38行定义。

float64_t get_a (  ) 

get weight a

返回:
weight a

在文件FKFeatures.h77行定义。

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

重载CSimpleFeatures< float64_t >

在文件FKFeatures.h102行定义。

float64_t get_weight_a (  ) 

get weight_a

返回:
weight_a

在文件FKFeatures.h99行定义。

void set_a ( float64_t  a  ) 

set weight a

参数:
a weight a

在文件FKFeatures.h68行定义。

float64_t * set_feature_matrix (  )  [virtual]

set feature matrix

返回:
something floaty

在文件FKFeatures.cpp209行定义。

void set_models ( CHMM p,
CHMM n 
)

set HMMs

参数:
p positive HMM
n negative HMM

在文件FKFeatures.cpp123行定义。

float64_t set_opt_a ( float64_t  a = -1  ) 

set opt a

参数:
a a
返回:
something floaty

在文件FKFeatures.cpp86行定义。


成员数据文档

CHMM* neg [protected]

negative HMM

在文件FKFeatures.h134行定义。

float64_t* neg_prob [protected]

negative prob

在文件FKFeatures.h138行定义。

CHMM* pos [protected]

positive HMM

在文件FKFeatures.h132行定义。

float64_t* pos_prob [protected]

positive prob

在文件FKFeatures.h136行定义。

float64_t weight_a [protected]

weight a

在文件FKFeatures.h140行定义。


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

SHOGUN Machine Learning Toolbox - Documentation