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

Hello 👋 ! I'm facing some issues when I try to register a configuration parsed with Hydra. Any idea how to do it?
I tried connect_configuration but it yield the following error:
ValueError: connect_configuration supportsdict,strand 'Path' types, omegaconf.dictconfig.DictConfig is not supported

  
  
Posted 3 years ago
Votes Newest

Answers 9


Hi GloriousPanda26 ,

You can cast the omegaconf.dictconfig.DictConfig to a dict and connect it:

` t = Task.init(project_name="Hydra", task_name="Hydra configuration")

conf = OmegaConf.create({"a": {"b": 10}, "c": 20})
t.connect_configuration(dict(conf), name="Hydra dict configuration") `
Can this do the trick?

  
  
Posted 3 years ago

This is unfortunate as OmegaConf behaves like dict

  
  
Posted 3 years ago

Casting the configuration into a dict does not solve the problem as clearml does not capture the nested aspect of the configuration object. This is how it looks on your example:

  
  
Posted 3 years ago

GloriousPanda26 doesn’t ClearML store the hydra configuration in the task?

  
  
Posted 3 years ago

Hi GloriousPanda26 , great, I'll check that, didn't understand if the original usage got you the configuration or not (got that with to_container you can connect_configuration )

  
  
Posted 3 years ago

sorry for the delay. ClearML capture the command line arguments but they are hydra parameters (mulitrun, config_dir, config_name, config_path, etc). I append and override some hyper parameters of the model but they are all stored as a string under "overrides".

  
  
Posted 3 years ago

image

  
  
Posted 3 years ago

This solve this issue. However it does not interpolate values

  
  
Posted 3 years ago

This seems to be working:
t.connect_configuration(OmegaConf.to_container(conf, resolve=True))

  
  
Posted 3 years ago
486 Views
9 Answers
3 years ago
7 days ago
Tags