libeblearn
|
#include <datasource.h>
Public Member Functions | |
labeled_pair_datasource (const char *data_fname, const char *labels_fname, const char *classes_fname, const char *pairs_fname, const char *name_=NULL, Tdata bias=0, float coeff=1.0) | |
Constructor from dataset file names. | |
labeled_pair_datasource (idx< Tdata > &data_, idx< Tlabel > &labels_, idx< ubyte > &classes_, idx< intg > &pairs_, const char *name_=NULL, Tdata bias=0, float coeff=1.0) | |
Constructor from dataset matrices. | |
virtual | ~labeled_pair_datasource () |
destructor. | |
virtual void | fprop (bbstate_idx< Tnet > &d1, bbstate_idx< Tnet > &d2, bbstate_idx< Tlabel > &label) |
Copies the current datum to a state and label. | |
virtual bool | next () |
Move to the next datum. Returns false if we reached the end. | |
virtual void | seek_begin () |
virtual unsigned int | size () |
Returns the number of pairs contained in this data source. | |
Public Attributes | |
idx< intg > | pairs |
void ebl::labeled_pair_datasource< Tnet, Tdata, Tlabel >::seek_begin | ( | ) | [virtual] |
Move to the beginning of the data, for the test iterators only, i.e. only next() is affected, next_train() is unaffected.
Reimplemented from ebl::datasource< Tnet, Tdata >.