mardi 31 mars 2020

np.random.seed not reproducing the same numbers

I have a code that requires a number of random vector draws (about 10K size) using np.random.normal, np.random.choice, and np.random.rand multiple times repeatedly. I set up np.random.seed(1234) at the beginning of the code, and I am expecting the code to produce exactly the same output when called twice. However, I get every time different outcomes. Is there anything I am missing about how randomization should occur when seeded?




Aucun commentaire:

Enregistrer un commentaire