jeudi 28 décembre 2017

Numpy random choice function gives weird results

I have a list of numbers and other list of probabilities which corresponds to these numbers. I am trying to select a number from numbers list based on probability. For this purpose I use random.choice function from Numpy library. As far as i know random.choice function doesnt have to select 1st entry based on its probability(it is equals to zero). However after several iteration it selects first entry. Can anybody help me out?enter image description here

Please see this ss from terminal




Aucun commentaire:

Enregistrer un commentaire