Class CStreamingFileFromStringFeatures is derived from CStreamingFile and provides an input source for the online framework from a CStringFeatures object.
Definition at line 22 of file StreamingFileFromStringFeatures.h.
Public Member Functions | |
CStreamingFileFromStringFeatures () | |
CStreamingFileFromStringFeatures (CStringFeatures< T > *feat) | |
CStreamingFileFromStringFeatures (CStringFeatures< T > *feat, float64_t *lab) | |
virtual | ~CStreamingFileFromStringFeatures () |
virtual void | get_string (T *&vec, int32_t &len) |
virtual void | get_string_and_label (T *&vec, int32_t &len, float64_t &label) |
void | reset_stream () |
virtual const char * | get_name () const |
Protected Attributes | |
CStringFeatures< T > * | features |
StringFeatures object. | |
int32_t | vector_num |
Index of vector to be returned from the feature matrix. |
Default constructor
Definition at line 105 of file StreamingFileFromStringFeatures.h.
CStreamingFileFromStringFeatures | ( | CStringFeatures< T > * | feat | ) |
Constructor taking a StringFeatures object as arg
feat | StringFeatures object |
Definition at line 112 of file StreamingFileFromStringFeatures.h.
CStreamingFileFromStringFeatures | ( | CStringFeatures< T > * | feat, | |
float64_t * | lab | |||
) |
Constructor taking a StringFeatures object as arg
feat | StringFeatures object | |
lab | Labels as float64_t* |
Definition at line 119 of file StreamingFileFromStringFeatures.h.
~CStreamingFileFromStringFeatures | ( | ) | [virtual] |
Destructor
Definition at line 126 of file StreamingFileFromStringFeatures.h.
virtual const char* get_name | ( | void | ) | const [virtual] |
Reimplemented from CStreamingFileFromFeatures.
Definition at line 82 of file StreamingFileFromStringFeatures.h.
void get_string | ( | T *& | vec, | |
int32_t & | len | |||
) | [virtual] |
This function will be called for reading strings from the corresponding StringFeatures object. It is specialized depending on class type T.
vec | vector | |
len | length of vector |
Definition at line 138 of file StreamingFileFromStringFeatures.h.
void get_string_and_label | ( | T *& | vec, | |
int32_t & | len, | |||
float64_t & | label | |||
) | [virtual] |
This function will be called for reading strings and labels from the corresponding StringFeatures object. It is specialized depending on class type T.
vec | vector | |
len | length of vector | |
label | label |
Definition at line 159 of file StreamingFileFromStringFeatures.h.
void reset_stream | ( | ) | [virtual] |
Reset the stream so the next example returned is the first example in the SimpleFeatures object.
Reimplemented from CStreamingFile.
Definition at line 76 of file StreamingFileFromStringFeatures.h.
CStringFeatures<T>* features [protected] |
StringFeatures object.
Reimplemented from CStreamingFileFromFeatures.
Definition at line 97 of file StreamingFileFromStringFeatures.h.
int32_t vector_num [protected] |
Index of vector to be returned from the feature matrix.
Definition at line 100 of file StreamingFileFromStringFeatures.h.