Qualia
0.2
|
#include <DataSet.h>
Public Member Functions | |
DataSet (int nExamples=0, int dim=0) | |
Constructor. More... | |
virtual | ~DataSet () |
int | dim () const |
Returns the dimension of each example. More... | |
int | nExamples () const |
Returns the number of examples. More... | |
virtual void | init () |
virtual void | reset () |
To be called before every episode. More... | |
virtual void | setExample (int t)=0 |
Sets this->example to given index t. More... | |
Public Attributes | |
int | _nExamples |
Number of examples in the dataset. More... | |
int | _dim |
Dimension of the example. More... | |
real * | example |
Current example. More... | |
Provides an interface to manipulate all kind of data.
DataSet::DataSet | ( | int | nExamples = 0 , |
int | dim = 0 |
||
) |
Constructor.
|
virtual |
|
inline |
Returns the dimension of each example.
|
virtual |
To be called before training. Should allocate example, among other things. Default version allocates example to the size of dim.
Reimplemented in TupleDataSet, XFileDataSet, MultiDataSet, DiskXFileDataSet, and SubDataSet.
|
inline |
Returns the number of examples.
|
inlinevirtual |
To be called before every episode.
Reimplemented in TupleDataSet, MultiDataSet, XFileDataSet, DiskXFileDataSet, and SubDataSet.
|
pure virtual |
Sets this->example to given index t.
Implemented in TupleDataSet, MultiDataSet, XFileDataSet, SubDataSet, DiskXFileDataSet, and MemoryDataSet.
int DataSet::_dim |
Dimension of the example.
int DataSet::_nExamples |
Number of examples in the dataset.
real* DataSet::example |
Current example.