f559fd7a6216be535e7ef8976041f2997e90c946,tests/integration_tests/test_xgboost.py,,test_xgboost_pruning_callback_call,#,9

Before Change



    // The pruner is activated.
    study = optuna.create_study(pruner=DeterministicPruner(True))
    trial = study._run_trial(func=lambda _: 1.0, catch=(Exception, ))
    pruning_callback = XGBoostPruningCallback(trial, "validation-error")
    with pytest.raises(optuna.structs.TrialPruned):
        pruning_callback(env)

After Change



    // The pruner is deactivated.
    study = optuna.create_study(pruner=DeterministicPruner(False))
    trial = create_running_trial(study, 1.0)
    pruning_callback = XGBoostPruningCallback(trial, "validation-error")
    pruning_callback(env)

    // The pruner is activated.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: tests/integration_tests/test_xgboost.py
Class Name:
Method Name: test_xgboost_pruning_callback_call


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: tests/integration_tests/test_lightgbm.py
Class Name:
Method Name: test_lightgbm_pruning_callback_call


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: tests/integration_tests/test_chainer.py
Class Name:
Method Name: test_chainer_pruning_extension_observation_nan


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: tests/integration_tests/test_chainer.py
Class Name:
Method Name: test_chainer_pruning_extension_trigger


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: tests/integration_tests/test_chainer.py
Class Name:
Method Name: test_observation_exists


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: tests/integration_tests/test_keras.py
Class Name:
Method Name: test_keras_pruning_callback_observation_isnan