Should I use `random.seed` or `numpy.random.seed` to control random number generation in `scikit-learn`?
Should I use np.random.seed or random.seed? That depends on whether in your code you are using numpy’s random number generator or the one in random. The random number generators in numpy.random and random have totally separate internal states, so numpy.random.seed() will not affect the random sequences produced by random.random(), and likewise random.seed() will not affect … Read more