mardi 22 décembre 2015

can i safely use np.random.binomial with a list of probabilities

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