From 6ad3f16bb96f7463755ae0cb73cb9349ef5a595e Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Fri, 17 May 2024 10:14:43 +0300 Subject: [PATCH] Fix parameter overrides are converted to string when using HPO (#975) --- clearml/automation/job.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/clearml/automation/job.py b/clearml/automation/job.py index 30396b88..1e1d607c 100644 --- a/clearml/automation/job.py +++ b/clearml/automation/job.py @@ -18,7 +18,6 @@ from ..backend_interface.util import get_or_create_project, exact_match_regex from ..storage.util import hash_dict from ..task import Task from ..backend_api.services import tasks as tasks_service -from ..utilities.proxy_object import verify_basic_type, get_basic_type logger = getLogger('clearml.automation.job') @@ -646,12 +645,8 @@ class ClearmlJob(BaseJob): if tags: self.task.set_tags(list(set(self.task.get_tags()) | set(tags))) - if task_params: - param_types = {} - for key, value in task_params.items(): - if verify_basic_type(value): - param_types[key] = get_basic_type(value) - self.task.set_parameters(task_params, __parameters_types=param_types) + if parameter_override: + self.task.update_parameters(parameter_override) # store back Task configuration object into backend if task_configurations: