4fd4659edaf98f34f839e7736ac09861f54a7eb7,tests/test_visualization.py,,test_get_optimization_history_plot,#,47

Before Change


        return 0.0

    // Test with a trial
    for i in range(3):
        study.optimize(lambda t: objective(t, i), n_trials=1)
    figure = _get_optimization_history_plot(study)
    assert len(figure.data) == 2
    assert tuple(figure.data[0].x) == (0, 1, 2)
    assert tuple(figure.data[0].y) == (1.0, 2.0, 0.0)

After Change



        raise ValueError

    study = create_study()
    study.optimize(fail_objective, n_trials=1)
    figure = _get_optimization_history_plot(study)
    assert len(figure.data) == 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pfnet/optuna
Commit Name: 4fd4659edaf98f34f839e7736ac09861f54a7eb7
Time: 2019-09-19
Author: suehiro619@gmail.com
File Name: tests/test_visualization.py
Class Name:
Method Name: test_get_optimization_history_plot


Project Name: pfnet/optuna
Commit Name: a0c596d6ec16a9f01d906ad98bafaf7e62ef9311
Time: 2021-02-27
Author: k_nzw@klis.tsukuba.ac.jp
File Name: tests/importance_tests/test_init.py
Class Name:
Method Name: test_get_param_importances_with_target


Project Name: pfnet/optuna
Commit Name: a0c596d6ec16a9f01d906ad98bafaf7e62ef9311
Time: 2021-02-27
Author: k_nzw@klis.tsukuba.ac.jp
File Name: tests/importance_tests/test_init.py
Class Name:
Method Name: test_get_param_importances_with_params