Bases: object
Checks various methods/properties of a conjugate prior.
Test that we get close to the same expectation of the mvn normalisation factor from sampling from a normal wishart that we do from calculation of our formula.
The conjugate prior being checked.
Bases: object
Checks various methods/properties of an exponential family.
Checks the family entropy agrees with the independently calculated entropy.
The exponential family being checked.
Bases: unittest.case.TestCase
Test case for all conjugate priors.
Bases: unittest.case.TestCase
Test case for all exponential families with default __init__ arguments.
Bases: unittest.case.TestCase
Test case for high dimensional multivariate normal.
Bases: unittest.case.TestCase
Tests conjugate prior of MVN distribution.
Checks the gradient of f matches the gradient calculated by df at x0
See U{http://www.boost.org/libs/test/doc/components/test_tools/floating_point_comparison.html} for partial inspiration.