numpy.random.binomial(1, [.1, .5, .9]) seems to work.
However the docs say that the 2nd parameter p is a float not a list.
Am I safe to use this?
Aucun commentaire:
Enregistrer un commentaire