samedi 9 novembre 2019

How do i choose the value of seed in numpy.random.seed(x)? I know what seed does but how to choose the value? [duplicate]

This question already has an answer here:

I know that, by using seed you get predictable values, everytime. But how to choose the value of seed. i.e. i.e. How should i select the value of x in numpy.random.seed(x)? I have seen some people choosing 0,1,2 etc. On what basis the value is chosen?

import numpy as np

np.random.seed(0)  
np.random.rand(5)

np.random.seed(1)  
np.random.rand(5)



Aucun commentaire:

Enregistrer un commentaire