libeblearn
ebl::labeled_pair_datasource< Tnet, Tdata, Tlabel > Class Template Reference

#include <datasource.h>

Inheritance diagram for ebl::labeled_pair_datasource< Tnet, Tdata, Tlabel >:
ebl::labeled_datasource< Tnet, Tdata, Tlabel > ebl::datasource< Tnet, Tdata >

List of all members.

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

Detailed Description

template<typename Tnet, typename Tdata, typename Tlabel>
class ebl::labeled_pair_datasource< Tnet, Tdata, Tlabel >

labeled_pair_datasource


Member Function Documentation

template<typename Tnet , typename Tdata , typename Tlabel >
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 >.


The documentation for this class was generated from the following files: