boolean example set: 16 examples, 2 inputs, 1 output, 2 mod levels. There are 4 examples for each function and they're repeated twice, so we can do "cross-validation" on the identical second half.
More...
#include <test.hpp>
|
| BooleanExampleSet () |
|
void | add0 (double o00, double o01, double o10, double o11) |
| set the 4 examples at modulator=0 More...
|
|
void | add1 (double o00, double o01, double o10, double o11) |
| set the 4 examples at modulator=1 More...
|
|
| 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...
|
|
ExampleSet & | setHRange (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...
|
|
boolean example set: 16 examples, 2 inputs, 1 output, 2 mod levels. There are 4 examples for each function and they're repeated twice, so we can do "cross-validation" on the identical second half.
Definition at line 41 of file test.hpp.
BooleanExampleSet::BooleanExampleSet |
( |
| ) |
|
|
inline |
void BooleanExampleSet::add0 |
( |
double |
o00, |
|
|
double |
o01, |
|
|
double |
o10, |
|
|
double |
o11 |
|
) |
| |
|
inline |
set the 4 examples at modulator=0
- Parameters
-
o00 | output for 0,0 |
o01 | output for 0,1 |
o10 | output for 1,0 |
o11 | output for 1,1 |
Definition at line 69 of file test.hpp.
void BooleanExampleSet::add1 |
( |
double |
o00, |
|
|
double |
o01, |
|
|
double |
o10, |
|
|
double |
o11 |
|
) |
| |
|
inline |
set the 4 examples at modulator=1
- Parameters
-
o00 | output for 0,0 |
o01 | output for 0,1 |
o10 | output for 1,0 |
o11 | output for 1,1 |
Definition at line 86 of file test.hpp.
The documentation for this class was generated from the following file:
- /home/travis/build/jimfinnis/uesmanncpp/test.hpp