Sampling from a set according to unnormalized log-probabilities in NumPy

后端 未结 0 594
时光说笑
时光说笑 2021-01-24 12:39

I have a 1-D np.ndarray filled with unnormalized log-probabilities that define a categorical distribution. I would like to sample an integer index from this distrib

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