Lorenzo Castellino10/31/2022, 8:48 AM
before the nodes that require it but I would like to hear what your solution to "reproducible randomness" looks like 🙂
Nok Lam Chan10/31/2022, 9:08 AM
Lorenzo Castellino10/31/2022, 9:17 AM
file, the appropriate
file or in another import location better suited for it?
Nok Lam Chan10/31/2022, 9:58 AM
may not be the best since there could be multiple nodes file using numpy.
is fine, or if you really want to make it explicit then a
hook would do the job.
Lorenzo Castellino10/31/2022, 9:59 AM
method. Thanks for the discussion and your view on the matter! 🙂 Maybe it might be something that I could add to the "common use cases" section of the docs? There is already a
example but it's quite generic. Maybe a more pragmatic example could be a nice addition.
Nok Lam Chan10/31/2022, 3:46 PM
Ben Levy10/31/2022, 5:47 PM
Deepyaman Datta11/01/2022, 2:35 AM
may work, but I think
is a lot more idiomatic.
Lorenzo Castellino11/03/2022, 11:16 AM
that can be passed down to the various classes that accept the
kwarg. The reasoning behind it is explained in this SO discussion which is also linked in the aforementioned documentation articles. My idea at this point is to actually pickle the rng variable and load it where needed. This feels a bit tedious due to the fact that all the corresponding functions and pipelines needs to be updated accordingly. Is there a more elegant way to do so? I still think that Hooks might be the key but I can't see how...
Ben Levy11/03/2022, 1:10 PM
) and then just import it into each node function if that's the strategy you want to employ(
from rng import RNG
Lorenzo Castellino11/03/2022, 1:48 PM