Don't recalculate min/max date - they won't change between epochs

This commit is contained in:
Matthias
2021-05-01 13:33:12 +02:00
parent ecdfb6e5ed
commit ced5cc7ce2
2 changed files with 9 additions and 9 deletions

View File

@@ -693,6 +693,8 @@ def test_generate_optimizer(mocker, hyperopt_conf) -> None:
}
hyperopt = Hyperopt(hyperopt_conf)
hyperopt.min_date = Arrow(2017, 12, 10)
hyperopt.max_date = Arrow(2017, 12, 13)
hyperopt.dimensions = hyperopt.hyperopt_space()
generate_optimizer_value = hyperopt.generate_optimizer(list(optimizer_param.values()))
assert generate_optimizer_value == response_expected