clearml icon indicating copy to clipboard operation
clearml copied to clipboard

After the task is completed, how to add a new pair of hyper parameters through the python API?

Open thgpddl opened this issue 3 years ago • 2 comments
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']]

thgpddl avatar Sep 07 '22 14:09 thgpddl

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?

erezalg avatar Sep 08 '22 07:09 erezalg

thank you!

thgpddl avatar Sep 08 '22 08:09 thgpddl