Qualia
0.2
|
#include <DiskXFileDataSet.h>
Public Member Functions | |
DiskXFileDataSet (DiskXFile *diskFile, bool useAscii=false) | |
virtual | ~DiskXFileDataSet () |
virtual void | init () |
virtual void | reset () |
To be called before every episode. More... | |
virtual void | setExample (int t) |
Sets this->example to given index t. More... | |
![]() | |
XFileDataSet (XFile *file) | |
virtual | ~XFileDataSet () |
![]() | |
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... | |
Public Attributes | |
DiskXFile * | _diskFile |
The DiskXFile where the dataset is stored. More... | |
bool | ascii |
Ascii or binary mode. More... | |
![]() | |
XFile * | _file |
The file (XFile) that stores the dataset. More... | |
int | _currentExampleIndex |
The index of the current example (internal use). More... | |
![]() | |
int | _nExamples |
Number of examples in the dataset. More... | |
int | _dim |
Dimension of the example. More... | |
real * | example |
Current example. More... | |
|
virtual |
|
virtual |
To be called before training. Should allocate example, among other things. Default version allocates example to the size of dim.
Reimplemented from XFileDataSet.
|
virtual |
To be called before every episode.
Reimplemented from XFileDataSet.
|
virtual |
Sets this->example to given index t.
Reimplemented from XFileDataSet.
bool DiskXFileDataSet::ascii |
Ascii or binary mode.