17.47. test_sampling

Test functionalities of flux sampling methods.

17.47.1. Module Contents

17.47.1.1. Functions

test_single_achr(model: Model) → None

Test ACHR sampling (one sample).

test_single_optgp(model: Model) → None

Test OptGP sampling (one sample).

test_multi_optgp(model: Model) → None

Test OptGP sampling (multi sample).

test_wrong_method(model: Model) → None

Test method intake sanity.

test_fixed_seed(model: Model) → None

Test result of fixed seed for sampling.

test_equality_constraint(model: Model) → None

Test equality constraint.

test_inequality_constraint(model: Model) → None

Test inequality constraint.

test_inhomogeneous_sanity(model: Model) → None

Test standard deviation between inhomogeneous and homogeneous sampling.

test_complicated_model() → None

Test a complicated model.

test_single_point_space(model: Model) → None

Test the reduction of the sampling space to one point.

test_sampling.test_single_achr(model: Model) → None[source]

Test ACHR sampling (one sample).

test_sampling.test_single_optgp(model: Model) → None[source]

Test OptGP sampling (one sample).

test_sampling.test_multi_optgp(model: Model) → None[source]

Test OptGP sampling (multi sample).

test_sampling.test_wrong_method(model: Model) → None[source]

Test method intake sanity.

test_sampling.test_fixed_seed(model: Model) → None[source]

Test result of fixed seed for sampling.

test_sampling.test_equality_constraint(model: Model) → None[source]

Test equality constraint.

test_sampling.test_inequality_constraint(model: Model) → None[source]

Test inequality constraint.

test_sampling.test_inhomogeneous_sanity(model: Model) → None[source]

Test standard deviation between inhomogeneous and homogeneous sampling.

test_sampling.test_complicated_model() → None[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: Model) → None[source]

Test the reduction of the sampling space to one point.