Sampling from a matrix of discrete probability distributions in Python without a loop

前端 未结 0 1342
别那么骄傲
别那么骄傲 2021-01-27 04:59

I have a numpy array P with size (N,M), where each row is a discrete probability distribution over 0, ..., M -1 (i.e. each row sums to one

相关标签:
回答
  • 消灭零回复
提交回复
热议问题