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 🙂
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
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
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