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

Before Change



    // 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: 3

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: 4bc1b4f57d845c47c9048c77adacb3dcf3bca06c
Time: 2020-11-05
Author: masaki.kozuki.2014@gmail.com
File Name: tutorial/10_key_features/003_efficient_optimization_algorithms.py
Class Name:
Method Name:


Project Name: pfnet/optuna
Commit Name: f4da1d51694289a40e96fef16e946e6cb3dbd027
Time: 2018-10-24
Author: toshihiko.yanase@gmail.com
File Name: tests/test_study.py
Class Name:
Method Name: test_optimize_with_direction