Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
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:
image

  
  
Posted one year ago
140 Views
0 Answers
one year ago
one year ago