UESMANN CPP  1.0
Reference implementation of UESMANN
Classes | Macros | Functions
/home/travis/build/jimfinnis/uesmanncpp/testBasic.cpp File Reference

Basic tests of underlying functionality, or things which only take a short time to run! More...

#include <iostream>
#include <boost/test/unit_test.hpp>
#include "test.hpp"
Include dependency graph for testBasic.cpp:

Go to the source code of this file.

Classes

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

Macros

#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (example)
 Test the basic example. More...
 
 BOOST_AUTO_TEST_CASE (subset)
 Test that subsetting examples works. More...
 
template<class T >
void sshuffle (T *x, int ct)
 simple shuffle for testing - performs a Fisher-Yates shuffle on an array of items of class T. More...
 
 BOOST_AUTO_TEST_CASE (alt)
 Test the alternate() function. More...
 
 BOOST_AUTO_TEST_CASE (altex)
 Test the alternation function on examples, simple version. More...
 
 BOOST_AUTO_TEST_CASE (stride)
 test strided example shuffle, 4 different modulator levels More...
 
 BOOST_AUTO_TEST_CASE (altex4)
 test strided example shuffle, 4 different modulator levels More...
 
void zero (Net *n)
 set all parameters (weights and biases) in a network to zero More...
 
 BOOST_AUTO_TEST_CASE (testmse)
 Test mean sum squared error of outputs. This test finds the mean of the sum of the squared errors on the outputs across all examples in the test set, in the case of a network where all the parameters are zero. In this case, all outputs will be 0.5 given the logistic sigmoid activation function. We test for the correct value determined by lots of print statements during development. More...
 
 BOOST_AUTO_TEST_CASE (loadmnist)
 Loading MNIST data and converting to an example set. Ensure we can load MNIST data into an example set, and that the image and its label are correct. The former is hard to test automatically, so I'll rely on having eyeballed it. More...
 

Detailed Description

Basic tests of underlying functionality, or things which only take a short time to run!

Definition in file testBasic.cpp.

Macro Definition Documentation

#define BOOST_TEST_DYN_LINK

Definition at line 11 of file testBasic.cpp.

#define BOOST_TEST_MAIN

Definition at line 10 of file testBasic.cpp.