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
Answered
Hello, I Have The Following Basic Snippet Where I'M Trying To Add Another Value To The Task'S Connected Arguments After Calling

Hello,

I have the following basic snippet where I'm trying to add another value to the Task's connected arguments after calling task.connect(args) . Script execution completes without any errors. However, when I check the configuration in the Web UI, I notice only the arguments entered before connecting them to the task are displayed. Am I missing something?
To provide context, here is the code I am using:

` from clearml import Task

args = {
"dataset_type": "training",
"entity_name": "Jupyter",
}

task = Task.init(
project_name="myproject", task_name="mytask", task_type=Task.TaskTypes.custom,
)

Link the arguments to the task (later we will be able

to change them from outside the code)

task.connect(args)

Trying to insert a new value to Task's connected arguments.

args["new_key"] = "new_value" `

  
  
Posted 3 years ago
Votes Newest

Answers 3


GiganticTurtle0 , which ClearML version are you using? From what I can see in the documentation to add the new parameters, you'll have to task.connect() again to add the new args

  
  
Posted 3 years ago

Hi GiganticTurtle0
You can keep clearml following the dictionary auto updating the UI
args = task.connect(args)

  
  
Posted 3 years ago

Currently I'm working with v1.0.5. Anyway, I found that it is possible to connect the new argument if I store in a variable the arguments returned by task.connect(args) . I expected that since it is a mutable object it would not be necessary to overwrite args , but apparently it is required in this version of ClearML.

  
  
Posted 3 years ago
969 Views
3 Answers
3 years ago
one year ago
Tags