Public Member Functions | Protected Attributes

CDecompressString< ST > Class Template Reference

Detailed Description

template<class ST>
class shogun::CDecompressString< ST >

Preprocessor that decompresses compressed strings.

Each string in CStringFeatures might be stored compressed in memory. This preprocessor decompresses these strings on the fly. This may be especially usefull for long strings and when datasets become too large to fit in memoryin uncompressed form but still when they are compressed.

Then avoiding expensive disk i/o strings are on-the-fly decompressed.

Definition at line 36 of file DecompressString.h.

Inheritance diagram for CDecompressString< ST >:
Inheritance graph

List of all members.

Public Member Functions

 CDecompressString (void)
 CDecompressString (E_COMPRESSION_TYPE ct)
virtual ~CDecompressString ()
virtual bool init (CFeatures *f)
 initialize preprocessor from features
virtual void cleanup ()
bool load (FILE *f)
 initialize preprocessor from file
bool save (FILE *f)
 save preprocessor init-data to file
virtual bool apply_to_string_features (CFeatures *f)
virtual ST * apply_to_string (ST *f, int32_t &len)
 apply preproc on single feature vector

Protected Attributes


Constructor & Destructor Documentation

CDecompressString ( void   ) 

default constructor

Definition at line 40 of file DecompressString.h.


Definition at line 48 of file DecompressString.h.

virtual ~CDecompressString (  )  [virtual]


Definition at line 55 of file DecompressString.h.

Member Function Documentation

virtual ST* apply_to_string ( ST *  f,
int32_t &  len 
) [virtual]

apply preproc on single feature vector

Implements CStringPreProc< ST >.

Definition at line 115 of file DecompressString.h.

virtual bool apply_to_string_features ( CFeatures f  )  [virtual]

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

Implements CStringPreProc< ST >.

Definition at line 91 of file DecompressString.h.

virtual void cleanup (  )  [virtual]


Implements CPreProc.

Definition at line 68 of file DecompressString.h.

virtual bool init ( CFeatures f  )  [virtual]

initialize preprocessor from features

Implements CPreProc.

Definition at line 61 of file DecompressString.h.

bool load ( FILE *  f  ) 

initialize preprocessor from file

Definition at line 73 of file DecompressString.h.

bool save ( FILE *  f  ) 

save preprocessor init-data to file

Definition at line 81 of file DecompressString.h.

Member Data Documentation

CCompressor* compressor [protected]

compressor used to decompress strings

Definition at line 135 of file DecompressString.h.

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

SHOGUN Machine Learning Toolbox - Documentation