UESMANN CPP  1.0
Reference implementation of UESMANN
Public Member Functions | List of all members
TestExampleSet Class Reference

Utility test class. Constructs a standard set: 10 examples, 5 ins, 2 outs: More...

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

Public Member Functions

 TestExampleSet ()
 
- Public Member Functions inherited from ExampleSet
 ExampleSet (int n, int nin, int nout, int levels)
 Constructor - creates but doesn't fill in the data. More...
 
 ExampleSet (const ExampleSet &parent, int start, int length)
 Constructor for making a subset of another set. This uses the actual data in the parent, but creates a fresh set of offset structures which can be independently shuffled. More...
 
 ExampleSet (const MNIST &mnist)
 Special constructor for generating a data set from an MNIST database with a single labelling (i.e. for use in non-modulatory training). We copy the data from the MNIST object. The outputs will use a one-hot encoding. This example set will have no modulation. More...
 
 ~ExampleSet ()
 Destructor - deletes data and offset array. More...
 
void shuffle (drand48_data *rd, ShuffleMode mode, int nExamples=0)
 Shuffle the example using a PRNG and a Fisher-Yates shuffle. More...
 
ExampleSetsetHRange (double mn, double mx)
 
int getInputCount () const
 get the number of inputs in all examples More...
 
int getOutputCount () const
 get the number of outputs in all examples More...
 
int getCount () const
 get the number of examples More...
 
double * getInputs (int example)
 Get a pointer to the inputs for a given example, for reading or writing. More...
 
double * getOutputs (int example)
 Get a pointer to the outputs for a given example, for reading or writing. More...
 
double getH (int example) const
 Get the h (modulator) for a given example. More...
 
int getNumHLevels ()
 return the number of different H-levels More...
 
void setH (int example, double h)
 Set the h (modulator) for a given example. More...
 
void dump (int start=0, int end=-1)
 dump to stdout More...
 

Additional Inherited Members

- Public Types inherited from ExampleSet
enum  ShuffleMode { STRIDE, ALTERNATE, SINGLE, NONE }
 Shuffling mode for shuffle() More...
 

Detailed Description

Utility test class. Constructs a standard set: 10 examples, 5 ins, 2 outs:

While the set says there are 2 h levels, this is untrue (however, a later test resets the H to match this)

Definition at line 28 of file testBasic.cpp.

Constructor & Destructor Documentation

TestExampleSet::TestExampleSet ( )
inline

Definition at line 30 of file testBasic.cpp.


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