Qualia  0.2
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SubDataSet Class Reference

#include <SubDataSet.h>

Inheritance diagram for SubDataSet:
Inheritance graph
[legend]
Collaboration diagram for SubDataSet:
Collaboration graph
[legend]

Public Member Functions

 SubDataSet (DataSet *dataSet, int *indices, int nExamples)
 
virtual ~SubDataSet ()
 
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...
 
- 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 SubDataSetgetShuffledDataSet (DataSet *dataSet, int nExamples=-1)
 
static void getStandardDataSets (SubDataSet **train, SubDataSet **valid, SubDataSet **test, DataSet *dataSet, float propTrain=0.5f, float propValid=0.2f, float propTest=0.3f)
 

Public Attributes

DataSet_dataSet
 
int * _indices
 
- Public Attributes inherited from DataSet
int _nExamples
 Number of examples in the dataset. More...
 
int _dim
 Dimension of the example. More...
 
realexample
 Current example. More...
 

Constructor & Destructor Documentation

SubDataSet::SubDataSet ( DataSet dataSet,
int *  indices,
int  nExamples 
)
SubDataSet::~SubDataSet ( )
virtual

Member Function Documentation

SubDataSet * SubDataSet::getShuffledDataSet ( DataSet dataSet,
int  nExamples = -1 
)
static
void SubDataSet::getStandardDataSets ( SubDataSet **  train,
SubDataSet **  valid,
SubDataSet **  test,
DataSet dataSet,
float  propTrain = 0.5f,
float  propValid = 0.2f,
float  propTest = 0.3f 
)
static
void SubDataSet::init ( )
virtual

To be called before training. Should allocate example, among other things. Default version allocates example to the size of dim.

Reimplemented from DataSet.

void SubDataSet::reset ( )
virtual

To be called before every episode.

Reimplemented from DataSet.

void SubDataSet::setExample ( int  t)
virtual

Sets this->example to given index t.

Implements DataSet.

Member Data Documentation

DataSet* SubDataSet::_dataSet
int* SubDataSet::_indices

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