Fix HPO crash when its corresponding task is initialized with continue_last_task=True

This commit is contained in:
allegroai 2024-01-23 17:29:05 +02:00
parent 0806902f8e
commit 39652cac94

View File

@ -1947,7 +1947,7 @@ class HyperParameterOptimizer(object):
objective if objective is not None else (
[-1] * self._objective_metric.len
),
iteration_value if iteration_value is not None else (
[iteration_value] * self._objective_metric.len if iteration_value is not None else (
[-1] * self._objective_metric.len
),
params