コード例 #1
0
ファイル: test_cmaes.py プロジェクト: rhhc/optuna_begin
def test_initialize_x0_with_unsupported_distribution() -> None:
    with pytest.raises(NotImplementedError):
        _initialize_x0({"x": UnsupportedDistribution()})

    with pytest.raises(NotImplementedError):
        _initialize_x0_randomly(np.random.RandomState(1),
                                {"x": UnsupportedDistribution()})
コード例 #2
0
def test_initialize_x0_with_unsupported_distribution() -> None:

    with pytest.raises(NotImplementedError):
        _initialize_x0({"x": UnsupportedDistribution()})