3926f245025f0e165fe4cd13bd46276d428d746f,tests/test_study.py,,test_minimize,#Any#Any#Any#,79

Before Change


        with pytest.raises(TypeError):
            pfnopt.minimize(f, n_trials=n_trials, n_jobs=n_jobs, storage=storage)
    else:
        study = pfnopt.minimize(f, n_trials=n_trials, n_jobs=n_jobs, storage=storage)
        assert f.n_calls == len(study.trials) == n_trials
        check_study(study)


@pytest.mark.parametrize("n_trials, n_jobs, storage_class_kwargs", itertools.product(
    (1, 2, 50, None),  // n_trials

After Change


        storage.close()
        return

    study = pfnopt.minimize(f, n_trials=n_trials, n_jobs=n_jobs, storage=storage)
    assert f.n_calls == len(study.trials) == n_trials
    check_study(study)

    storage.close()

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pfnet/optuna
Commit Name: 3926f245025f0e165fe4cd13bd46276d428d746f
Time: 2018-03-02
Author: sano@preferred.jp
File Name: tests/test_study.py
Class Name:
Method Name: test_minimize


Project Name: pfnet/optuna
Commit Name: e2fd4b69ccd58e3213c63def0111d4adbdf72316
Time: 2018-04-03
Author: t.akiba.65536@gmail.com
File Name: tests/test_study.py
Class Name:
Method Name: test_minimize_parallel_timeout


Project Name: pfnet/optuna
Commit Name: 3926f245025f0e165fe4cd13bd46276d428d746f
Time: 2018-03-02
Author: sano@preferred.jp
File Name: tests/test_study.py
Class Name:
Method Name: test_minimize_timeout


Project Name: pfnet/optuna
Commit Name: 50392c470be2cb3d18b86628749ec34a908414e3
Time: 2019-03-04
Author: toshihiko.yanase@gmail.com
File Name: tests/test_study.py
Class Name:
Method Name: test_optimize_with_direction