bnelearn.tests.test_single_item_contests module¶
Testing correctness of contest implementations.
- bnelearn.tests.test_single_item_contests.impact_function(x)¶
- bnelearn.tests.test_single_item_contests.test_crowdsourcing_correctness()[source]¶
Crowdsourcing Contest should return correct allocations and payments.
- bnelearn.tests.test_single_item_contests.test_crowdsourcing_cuda()[source]¶
Tullock Contest should run on GPU if available on the system and desired.
- bnelearn.tests.test_single_item_contests.test_crowdsourcing_illegal_arguments()[source]¶
Illegal effort tensors should cause exceptions.
- bnelearn.tests.test_single_item_contests.test_tullock_correctness()[source]¶
Tullock Contest should return correct winning probabilities and payments.