You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# if a seed is set, then use it to call the random number generators
if seed is not None:
import random
random.seed(seed)
np.random.seed(seed)
Currently pymoo sets global seeds that mean that it can interfere with intended functionality outside it's own scope. I would propose that we update pymoo to use the best practice of numpy Generators and then fork the seed into everywhere where a seed is used.
The text was updated successfully, but these errors were encountered:
I would be happy to look at a PR. But I also know that this requires touching many places in the framework. Ideally, each algorithm has a RandomState object (or maybe even operators have their own). Additionally, the implementation should be thread-safe which it currently is not.
Currently
pymoo
sets global seeds that mean that it can interfere with intended functionality outside it's own scope. I would propose that we update pymoo to use the best practice of numpyGenerators
and then fork the seed into everywhere where a seed is used.The text was updated successfully, but these errors were encountered: