bnelearn.tests.test_samplers.test_ipv module

This pytest test file checks whether valuation and observation samplers have the expected behaviour

bnelearn.tests.test_samplers.test_ipv.check_validity(valuation_profile, expected_shape, expected_mean, expected_std, expected_correlation=None)[source]

Checks whether a given batch of profiles has expected shape, mean, std and correlation matrix.

bnelearn.tests.test_samplers.test_ipv.correlation(valuation_profile)[source]

Pearson correlation between valuations of bidders.

valuation_profile should be (batch x n_players x 1)

bnelearn.tests.test_samplers.test_ipv.test_gaussian_symmetric_ipv()[source]

Test the GaussianSymmetricIPVSampler.

bnelearn.tests.test_samplers.test_ipv.test_uniform_symmetric_ipv()[source]

Test the UniformSymmetricIPVSampler.