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?
Please see this ss from terminal
Aucun commentaire:
Enregistrer un commentaire