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
Hey There, Is There Any Way I Can Tell The Task Not To Set A Random Seed? I'M Setting Up Reproducibility Myself But When I Call Task.Init() The Seed Is Changed. Is It Possible To Tell Clearml Not To Initialize Any Rng? It Appears That Task.Set_Random_Seed

Hey there, is there any way I can tell the task not to set a random seed? I'm setting up reproducibility myself but when I call Task.init() the seed is changed. Is it possible to tell clearml not to initialize any rng? It appears that task.set_random_seed() doesn't change anything. For now I worked around it by calling my reproducibility function after Task.init() but it take me a while before finding out what the problem was. Is this documented?

  
  
Posted 2 years ago
Votes Newest

Answers 4


Hi TartBear70

I'm setting up reproducibility myself but when I call Task.init() the seed is changed

Correct

. Is it possible to tell clearml not to initialize any rng? It appears that task.set_random_seed() doesn't change anything.

I think this is now fixed (meaning should be part of the post weekend release)

. Is this documented?

Hmm i'm not sure (actually we should write it, maybe in Task.init docstring?)
Specifically the function that is being called is:
https://github.com/allegroai/clearml/blob/12ad0f624339fc675eb3f52518c083908f70f31d/clearml/utilities/seed.py#L10

  
  
Posted 2 years ago

All right that sounds useful thanks! I'm not sure that Task.init() should handle reproducibility by default but maybe it may just be personal taste

  
  
Posted 2 years ago

Sorry to further bother you, but do you happen to have any idea on how to solve this? https://clearml.slack.com/archives/CTK20V944/p1659602063081199

  
  
Posted 2 years ago

Hi TartBear70 ,

You can use the following method:
https://clear.ml/docs/latest/docs/references/sdk/task/#taskset_random_seed
Please note you need to set it before running Task.init()
If you set it to None this will cancel any random seed override performed by ClearML.

Tell me if this helps 🙂

  
  
Posted 2 years ago
1K Views
4 Answers
2 years ago
one year ago
Tags