| 
    Qualia
    0.2
    
   | 
 
#include <TupleDataSet.h>


Public Member Functions | |
| TupleDataSet (XFile *file, unsigned int observationDim, ActionProperties *actionProperties) | |
| virtual | ~TupleDataSet () | 
| 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... | |
| unsigned int | observationDim () const | 
| unsigned int | actionDim () const | 
  Public Member Functions inherited from DataSet | |
| 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... | |
Static Public Member Functions | |
| static void | tupleFromExample (RLObservation *lastObservation, Action *lastAction, real *reward, RLObservation *observation, const real *example) | 
| static void | tupleToExample (real *example, const RLObservation &lastObservation, const Action &lastAction, real reward, const RLObservation &observation) | 
Public Attributes | |
| XFile * | file | 
| RLObservation | lastObservation | 
| Action | lastAction | 
| RLObservation | observation | 
| int | currentExampleIndex | 
  Public Attributes inherited from DataSet | |
| int | _nExamples | 
| Number of examples in the dataset.  More... | |
| int | _dim | 
| Dimension of the example.  More... | |
| real * | example | 
| Current example.  More... | |
A data set containing reinforcement learning (s,a,r,s') tuples (for batch learning). It reads from an XFile in the Qualia RAW format (cf. FileExportEnvironment).
| TupleDataSet::TupleDataSet | ( | XFile * | file, | 
| unsigned int | observationDim, | ||
| ActionProperties * | actionProperties | ||
| ) | 
      
  | 
  virtual | 
      
  | 
  inline | 
      
  | 
  virtual | 
To be called before training. Should allocate example, among other things. Default version allocates example to the size of dim.
Reimplemented from DataSet.
      
  | 
  inline | 
      
  | 
  virtual | 
To be called before every episode.
Reimplemented from DataSet.
      
  | 
  virtual | 
Sets this->example to given index t.
Implements DataSet.
      
  | 
  static | 
      
  | 
  static | 
| int TupleDataSet::currentExampleIndex | 
| XFile* TupleDataSet::file | 
| Action TupleDataSet::lastAction | 
| RLObservation TupleDataSet::lastObservation | 
| RLObservation TupleDataSet::observation | 
 1.8.3.1