Class StreamingFileFromFeatures to read vector-by-vector from a CFeatures object.
The object must be initialized with another CFeatures object. It is upto the derived class to implement specialized functions to return the vector.
Only a subset of the functions defined in StreamingFile.h need to be implemented, as appropriate for the CFeatures object which the class works with.
For example, a derived class based on SimpleFeatures should only implement the get_(type)*_vector() functions, and a class based on StringFeatures should only implement the get_(type)*_string() functions.
Definition at line 34 of file StreamingFileFromFeatures.h.
Public Member Functions | |
CStreamingFileFromFeatures () | |
CStreamingFileFromFeatures (CFeatures *feat) | |
CStreamingFileFromFeatures (CFeatures *feat, float64_t *lab) | |
virtual | ~CStreamingFileFromFeatures () |
virtual void | set_features (CFeatures *feat) |
virtual void | set_labels (float64_t *lab) |
virtual const char * | get_name () const |
Protected Attributes | |
CFeatures * | features |
Features object. | |
float64_t * | labels |
Labels (if applicable). |
Default constructor
Definition at line 14 of file StreamingFileFromFeatures.cpp.
CStreamingFileFromFeatures | ( | CFeatures * | feat | ) |
Constructor taking a CFeatures object as argument
feat | features object |
Definition at line 21 of file StreamingFileFromFeatures.cpp.
CStreamingFileFromFeatures | ( | CFeatures * | feat, | |
float64_t * | lab | |||
) |
Constructor taking a CFeatures object and labels as arguments
feat | features object | |
lab | labels as float64_t* |
Definition at line 28 of file StreamingFileFromFeatures.cpp.
~CStreamingFileFromFeatures | ( | ) | [virtual] |
Destructor
Definition at line 35 of file StreamingFileFromFeatures.cpp.
virtual const char* get_name | ( | void | ) | const [virtual] |
Reimplemented from CStreamingFile.
Reimplemented in CStreamingFileFromSimpleFeatures< T >, CStreamingFileFromSparseFeatures< T >, and CStreamingFileFromStringFeatures< T >.
Definition at line 85 of file StreamingFileFromFeatures.h.
virtual void set_features | ( | CFeatures * | feat | ) | [virtual] |
Set the features object
feat | features object as argument |
Definition at line 67 of file StreamingFileFromFeatures.h.
virtual void set_labels | ( | float64_t * | lab | ) | [virtual] |
Set the labels
lab | array of labels |
Definition at line 78 of file StreamingFileFromFeatures.h.
Features object.
Reimplemented in CStreamingFileFromSimpleFeatures< T >, CStreamingFileFromSparseFeatures< T >, and CStreamingFileFromStringFeatures< T >.
Definition at line 95 of file StreamingFileFromFeatures.h.
Labels (if applicable).
Definition at line 98 of file StreamingFileFromFeatures.h.