17.20. test_sampling

Test functionalities of flux sampling methods.

17.20.1. Module Contents

17.20.1.1. Functions

test_single_achr(model)

Test ACHR sampling (one sample).

test_single_optgp(model)

Test OptGP sampling (one sample).

test_multi_optgp(model)

Test OptGP sampling (multi sample).

test_wrong_method(model)

Test method intake sanity.

test_fixed_seed(model)

Test result of fixed seed for sampling.

test_equality_constraint(model)

Test equality constraint.

test_inequality_constraint(model)

Test inequality constraint.

test_inhomogeneous_sanity(model)

Test whether inhomogeneous sampling gives approximately the same

test_complicated_model()

Test a complicated model.

test_single_point_space(model)

Test the reduction of the sampling space to one point.

test_sampling.test_single_achr(model)[source]

Test ACHR sampling (one sample).

test_sampling.test_single_optgp(model)[source]

Test OptGP sampling (one sample).

test_sampling.test_multi_optgp(model)[source]

Test OptGP sampling (multi sample).

test_sampling.test_wrong_method(model)[source]

Test method intake sanity.

test_sampling.test_fixed_seed(model)[source]

Test result of fixed seed for sampling.

test_sampling.test_equality_constraint(model)[source]

Test equality constraint.

test_sampling.test_inequality_constraint(model)[source]

Test inequality constraint.

test_sampling.test_inhomogeneous_sanity(model)[source]

Test whether inhomogeneous sampling gives approximately the same standard deviation as a homogeneous version.

test_sampling.test_complicated_model()[source]

Test a complicated model.

Difficult model since the online mean calculation is numerically unstable so many samples weakly violate the equality constraints.

test_sampling.test_single_point_space(model)[source]

Test the reduction of the sampling space to one point.