3f91f8a18229cd499718ae3775c967609a3f592c,tests/trial_tests/test_frozen.py,,test_sampling,#Any#,108
Before Change
assert isinstance(e, int)
return a + b + c + d + e + f
study = create_study(storage_init_func())
study.optimize(objective, n_trials=1)
best_trial = study.best_trial
// re-evaluate objective with the best hyper-parameters
v = objective(best_trial)
assert v == best_trial.value
After Change
assert isinstance(e, int)
return a + b + c + d + e + f
with StorageSupplier(storage_mode) as storage:
study = create_study(storage=storage)
study.optimize(objective, n_trials=1)
best_trial = study.best_trial
// re-evaluate objective with the best hyper-parameters
v = objective(best_trial)
assert v == best_trial.value
def test_suggest_float() -> None:
trial = FrozenTrial(
number=0,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: pfnet/optuna
Commit Name: 3f91f8a18229cd499718ae3775c967609a3f592c
Time: 2021-02-27
Author: k_nzw@klis.tsukuba.ac.jp
File Name: tests/trial_tests/test_frozen.py
Class Name:
Method Name: test_sampling
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
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