SHOGUN v0.9.0
公有成员 | 保护成员 | 保护属性
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.h第41行定义。

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

所有成员的列表。

公有成员

 CFKFeatures ()
 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_t * set_feature_matrix ()
float64_t set_opt_a (float64_t a=-1)
float64_t get_weight_a ()
virtual const char * get_name () const

保护成员

virtual float64_t * compute_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)

保护属性

CHMM * pos
CHMM * neg
float64_t * pos_prob
float64_t * neg_prob
float64_t weight_a

构造及析构函数文档

default constructor

在文件FKFeatures.cpp第19行定义。

CFKFeatures ( int32_t  size,
CHMM *  p,
CHMM *  n 
)

constructor

参数:
sizecache size
ppositive HMM
nnegative HMM

在文件FKFeatures.cpp第24行定义。

CFKFeatures ( const CFKFeatures &  orig)

copy constructor

在文件FKFeatures.cpp第32行定义。

~CFKFeatures ( ) [virtual]

在文件FKFeatures.cpp第37行定义。


成员函数文档

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

compute feature vector

参数:
numnum
lenlen
target
返回:
something floaty

重载CSimpleFeatures< float64_t >。

在文件FKFeatures.cpp第148行定义。

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

computes the feature vector to the address addr

参数:
addraddress
numnum
lenlen

在文件FKFeatures.cpp第168行定义。

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

deriv a

参数:
aa
dimensiondimension

在文件FKFeatures.cpp第43行定义。

float64_t get_a ( )

get weight a

返回:
weight a

在文件FKFeatures.h第80行定义。

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

重载CSimpleFeatures< float64_t >。

在文件FKFeatures.h第105行定义。

float64_t get_weight_a ( )

get weight_a

返回:
weight_a

在文件FKFeatures.h第102行定义。

void set_a ( float64_t  a)

set weight a

参数:
aweight a

在文件FKFeatures.h第71行定义。

float64_t * set_feature_matrix ( ) [virtual]

set feature matrix

返回:
something floaty

在文件FKFeatures.cpp第214行定义。

void set_models ( CHMM *  p,
CHMM *  n 
)

set HMMs

参数:
ppositive HMM
nnegative HMM

在文件FKFeatures.cpp第128行定义。

float64_t set_opt_a ( float64_t  a = -1)

set opt a

参数:
aa
返回:
something floaty

在文件FKFeatures.cpp第91行定义。


成员数据文档

CHMM* neg [protected]

negative HMM

在文件FKFeatures.h第140行定义。

float64_t* neg_prob [protected]

negative prob

在文件FKFeatures.h第144行定义。

CHMM* pos [protected]

positive HMM

在文件FKFeatures.h第138行定义。

float64_t* pos_prob [protected]

positive prob

在文件FKFeatures.h第142行定义。

float64_t weight_a [protected]

weight a

在文件FKFeatures.h第146行定义。


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

SHOGUN Machine Learning Toolbox - Documentation