Unanswered
Is There An Larger Example On How To Use Task.Connect Other Than In The Doc String?
For Example
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:
178 Views
0
Answers
one year ago
one year ago