When connecting a nested dict the keys will be in the struct of period/end
and period/start
, so those are the keys you need to change, in additional to the section name, General
if name not given.
This should work for example in your example:
` cloned_task = Task.clone(source_task=template_task,
name=template_task.name+' for params', parent=template_task.id)
put back into the new cloned task
cloned_task.set_parameters({"General/period/start": "0000-05-01 00:00", "General/period/end": "0000-08-31 23:00"}) `
or the code from above too (going over the keys):
` from clearml import Task
template_task = Task.get_task(task_id="<Your template task id>")
cloned_task = Task.clone(source_task=template_task,
name=template_task.name+' for params', parent=template_task.id)
cloned_task_parameters = cloned_task.get_parameters()
override with random samples form grid
for k in cloned_task_parameters.keys():
cloned_task_parameters[k] = "2020-01-01 00:56"
put back into the new cloned task
cloned_task.set_parameters(cloned_task_parameters) `