test_infer_utils#

Tests for the n2j.inference.infer_utils utility functions

Module Contents#

Classes#

TestInferUtils

A suite of tests verifying n2j.inference.infer_utils utility functions

class test_infer_utils.TestInferUtils(methodName='runTest')[source]#

Bases: unittest.TestCase

A suite of tests verifying n2j.inference.infer_utils utility functions

classmethod setUpClass()[source]#

Set up seeding

test_get_normal_logpdf()[source]#

Test evaluation of log Gaussian PDF for correctness

test_log_prob_mcmc_single()[source]#

Test evaluation of MCMC objective for correctness, for a single sightline

test_log_prob_mcmc_bnn()[source]#

Test evaluation of MCMC objective for correctness, for various numbers of BNN samples

test_log_prob_mcmc_multiple()[source]#

Test evaluation of MCMC objective for correctness, for multiple sightlines

test_get_omega_post()[source]#

Test that get_omega_post runs without error and returns MCMC chains of expected shapes

classmethod tearDownClass()[source]#

Hook method for deconstructing the class fixture after running all tests in the class.