mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix warning on optimization parameter is missing from base task id
This commit is contained in:
parent
53a889f869
commit
e7843c4dc4
@ -572,7 +572,7 @@ class SearchStrategy(object):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
raise ValueError("Could not find base task id {}".format(self._base_task_id))
|
raise ValueError("Could not find base task id {}".format(self._base_task_id))
|
||||||
# check if the hyper-parameters exist:
|
# check if the hyper-parameters exist:
|
||||||
task_parameters = task.get_parameters_as_dict()
|
task_parameters = task.get_parameters(backwards_compatibility=False)
|
||||||
missing_params = [h.name for h in self._hyper_parameters if h.name not in task_parameters]
|
missing_params = [h.name for h in self._hyper_parameters if h.name not in task_parameters]
|
||||||
if missing_params:
|
if missing_params:
|
||||||
logger.warning('Could not find requested hyper-parameters {} on base task {}'.format(
|
logger.warning('Could not find requested hyper-parameters {} on base task {}'.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user