pasteur.synth.make_deterministic

pasteur.synth.make_deterministic#

pasteur.synth.make_deterministic(obj_func, /, *, noise_kw=None)[source]#

Takes an object function (with self), and if the object has a seed attribute it fixes the np.random.seed attribute to it and prints a random number at the end.

If the algorithm sampled the same amount of numbers at the same order, then the numbers should be the same.