Class CStreamingFileFromSimpleFeatures is a derived class of CStreamingFile which creates an input source for the online framework from a CSimpleFeatures object.
This kind of input is seekable, and hence can be used for making multiple passes over data.
It is useful for testing/comparison purposes.
Definition at line 27 of file StreamingFileFromSimpleFeatures.h.

Public Member Functions | |
| CStreamingFileFromSimpleFeatures () | |
| CStreamingFileFromSimpleFeatures (CSimpleFeatures< T > *feat) | |
| CStreamingFileFromSimpleFeatures (CSimpleFeatures< T > *feat, float64_t *lab) | |
| virtual | ~CStreamingFileFromSimpleFeatures () |
| virtual void | get_vector (T *&vec, int32_t &len) |
| virtual void | get_vector_and_label (T *&vec, int32_t &len, float64_t &label) |
| void | reset_stream () |
| virtual const char * | get_name () const |
Protected Attributes | |
| CSimpleFeatures< T > * | features |
| SimpleFeatures object. | |
| int32_t | vector_num |
| Index of vector to be returned from the feature matrix. | |
Default constructor
Definition at line 110 of file StreamingFileFromSimpleFeatures.h.
| CStreamingFileFromSimpleFeatures | ( | CSimpleFeatures< T > * | feat | ) |
Constructor taking a SimpleFeatures object as arg
| feat | SimpleFeatures object |
Definition at line 117 of file StreamingFileFromSimpleFeatures.h.
| CStreamingFileFromSimpleFeatures | ( | CSimpleFeatures< T > * | feat, | |
| float64_t * | lab | |||
| ) |
Constructor taking a SimpleFeatures object as arg
| feat | SimpleFeatures object | |
| lab | Labels as float64_t* |
Definition at line 127 of file StreamingFileFromSimpleFeatures.h.
| ~CStreamingFileFromSimpleFeatures | ( | ) | [virtual] |
Destructor
Definition at line 139 of file StreamingFileFromSimpleFeatures.h.
| virtual const char* get_name | ( | void | ) | const [virtual] |
Reimplemented from CStreamingFileFromFeatures.
Definition at line 87 of file StreamingFileFromSimpleFeatures.h.
| void get_vector | ( | T *& | vec, | |
| int32_t & | len | |||
| ) | [virtual] |
This function will be called for reading vectors from the corresponding SimpleFeatures object. It is specialized depending on class type T.
| vec | vector | |
| len | length of vector |
Definition at line 153 of file StreamingFileFromSimpleFeatures.h.
| void get_vector_and_label | ( | T *& | vec, | |
| int32_t & | len, | |||
| float64_t & | label | |||
| ) | [virtual] |
This function will be called for reading vectors and labels from the corresponding SimpleFeatures object. It is specialized depending on class type T.
| vec | vector | |
| len | length of vector | |
| label | label |
Definition at line 174 of file StreamingFileFromSimpleFeatures.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 81 of file StreamingFileFromSimpleFeatures.h.
CSimpleFeatures<T>* features [protected] |
SimpleFeatures object.
Reimplemented from CStreamingFileFromFeatures.
Definition at line 102 of file StreamingFileFromSimpleFeatures.h.
int32_t vector_num [protected] |
Index of vector to be returned from the feature matrix.
Definition at line 105 of file StreamingFileFromSimpleFeatures.h.