Hi @<1523704157695905792:profile|VivaciousBadger56> , you can see an example of usage of Task.connect()
here:
None
Thank you I found the error.myPar = task.connect(myPar, name='from TaskParameters')
is required.
Here is my code:
from clearml import Task, TaskTypes
from clearml.task_parameters import TaskParameters, param, percent_param
class MyParams(TaskParameters):
iterations = param(
type=int,
desc="Number of iterations to run",
range=(0, 100000),
)
target_accuracy = percent_param(
desc="The target accuracy of the model",
)
myPar = MyParams(iterations=1000, target_accuracy=0.95)
parameters_to_track1 = {'var1': 'a', 'hyper_par': 1}
parameters_to_track2 = {'var2': 'c', 'hyper_par2': 4}
task = Task.init(project_name='FirstTrial', task_name='first_trial', task_type=TaskTypes.training)
task.connect(parameters_to_track1, name='from dictionary 1')
task.connect(parameters_to_track2, name='from dictionary 2')
task.connect(myPar, name='from TaskParameters')
dataset_name = "Demodata"
parameters_to_track1['var1'] = 'b'
parameters_to_track1['hyper_par'] = 2
Here is what I see:
I expect either 'var1' to be 'b' or - better - there to be log of the change, so that I would be able to see how the value changed over time.