Пример #1
0
def test_for_rolling_window_size_must_be_strictly_positive(RPS_task):
    with pytest.raises(ValueError) as _:
        _ = PSRONashResponse(task=RPS_task,
                             threshold_best_response=0.5,
                             match_outcome_rolling_window_size=0)
Пример #2
0
def test_single_agent_task_raises_valueerror(pendulum_task):
    with pytest.raises(ValueError) as _:
        _ = PSRONashResponse(task=pendulum_task,
                             threshold_best_response=0.5,
                             benchmarking_episodes=1)
Пример #3
0
def test_for_benchmarking_episodes_must_be_strictly_positive(RPS_task):
    with pytest.raises(ValueError) as _:
        _ = PSRONashResponse(task=RPS_task,
                             threshold_best_response=0.5,
                             benchmarking_episodes=0)