CSparsePreProc< ST >模板类参考


详细描述

template<class ST>
class shogun::CSparsePreProc< ST >

Template class SparsePreProc, base class for preprocessors (cf. CPreProc) that apply to CSparseFeatures.

Two new functions apply_to_sparse_feature_vector() and apply_to_sparse_feature_matrix() are defined in this interface that need to be implemented in each particular preprocessor operating on CSparseFeatures.

在文件SparsePreProc.h33行定义。

继承图,类CSparsePreProc< ST >
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CSparsePreProc (const char *name, const char *id)
virtual TSparse< ST > * apply_to_sparse_feature_matrix (CSparseFeatures< ST > *f)=0
virtual TSparse< ST > * apply_to_sparse_feature_vector (TSparse< ST > *f, int32_t &len)=0
virtual EFeatureClass get_feature_class ()
 return that we are simple minded features (just fixed size matrices)

构造及析构函数文档

CSparsePreProc ( const char *  name,
const char *  id 
)

constructor

参数:
name sparse preprocessor's name
id sparse preprocessor's id

在文件SparsePreProc.h41行定义。


成员函数文档

virtual TSparse<ST>* apply_to_sparse_feature_matrix ( CSparseFeatures< ST > *  f  )  [pure virtual]

apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();

virtual TSparse<ST>* apply_to_sparse_feature_vector ( TSparse< ST > *  f,
int32_t &  len 
) [pure virtual]

apply preproc on single feature vector result in feature matrix

virtual EFeatureClass get_feature_class (  )  [virtual]

return that we are simple minded features (just fixed size matrices)

实现了CPreProc

在文件SparsePreProc.h55行定义。


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

SHOGUN Machine Learning Toolbox - Documentation