예제 #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
파일: test_psro.py 프로젝트: Mark-F10/Regym
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)