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

详细描述

The class TOPFeatures implements TOP 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 TOP-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.

在文件TOPFeatures.h第68行定义。

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

所有成员的列表。

公有成员

 CTOPFeatures ()
 CTOPFeatures (int32_t size, CHMM *p, CHMM *n, bool neglin, bool poslin)
 CTOPFeatures (const CTOPFeatures &orig)
virtual ~CTOPFeatures ()
void set_models (CHMM *p, CHMM *n)
virtual float64_t * set_feature_matrix ()
int32_t compute_num_features ()
bool compute_relevant_indizes (CHMM *hmm, T_HMM_INDIZES *hmm_idx)
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)

保护属性

CHMM * pos
CHMM * neg
bool neglinear
bool poslinear
T_HMM_INDIZES pos_relevant_indizes
T_HMM_INDIZES neg_relevant_indizes

构造及析构函数文档

default constructor

在文件TOPFeatures.cpp第18行定义。

CTOPFeatures ( int32_t  size,
CHMM *  p,
CHMM *  n,
bool  neglin,
bool  poslin 
)

constructor

参数:
sizecache size
ppositive HMM
nnegative HMM
neglinif negative HMM is of linear shape
poslinif positive HMM is of linear shape

在文件TOPFeatures.cpp第23行定义。

CTOPFeatures ( const CTOPFeatures &  orig)

copy constructor

在文件TOPFeatures.cpp第34行定义。

~CTOPFeatures ( ) [virtual]

在文件TOPFeatures.cpp第44行定义。


成员函数文档

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 >。

在文件TOPFeatures.cpp第88行定义。

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

在文件TOPFeatures.cpp第104行定义。

int32_t compute_num_features ( )

compute number of features

返回:
number of features

在文件TOPFeatures.cpp第335行定义。

bool compute_relevant_indizes ( CHMM *  hmm,
T_HMM_INDIZES *  hmm_idx 
)

compute relevant indices

参数:
hmmHMM to compute for
hmm_idxHMM index
返回:
if computing was successful

在文件TOPFeatures.cpp第232行定义。

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

重载CSimpleFeatures< float64_t >。

在文件TOPFeatures.h第117行定义。

float64_t * set_feature_matrix ( ) [virtual]

set feature matrix

返回:
something floaty

在文件TOPFeatures.cpp第193行定义。

void set_models ( CHMM *  p,
CHMM *  n 
)

set HMMs

参数:
ppositive HMM
nnegative HMM

在文件TOPFeatures.cpp第64行定义。


成员数据文档

CHMM* neg [protected]

negative HMM

在文件TOPFeatures.h第145行定义。

T_HMM_INDIZES neg_relevant_indizes [protected]

negative relevant indices

在文件TOPFeatures.h第154行定义。

bool neglinear [protected]

if negative HMM is a LinearHMM

在文件TOPFeatures.h第147行定义。

CHMM* pos [protected]

positive HMM

在文件TOPFeatures.h第143行定义。

T_HMM_INDIZES pos_relevant_indizes [protected]

positive relevant indices

在文件TOPFeatures.h第152行定义。

bool poslinear [protected]

if positive HMM is a LinearHMM

在文件TOPFeatures.h第149行定义。


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

SHOGUN Machine Learning Toolbox - Documentation