clearml
clearml copied to clipboard
After the task is completed, how to add a new pair of hyper parameters through the python API?
trafficstars
I tried the following code:
a_task = Task.get_task(task_id='621708c9a164')
a_task.set_parameters_as_dict({"test":1245})
The error:
ValueError: Task object can only be updated if created or in_progress [status=completed fields=['hyperparams']]
Hi @thgpddl,
The reason you're getting this error is that the task you're trying to update is already completed. For reproducibility, ClearML allows you to only modify created, or running tasks.
If you'd like to change the parameter and rerun it, just clone the original task and do so.
Makes sense?
thank you!