Open andrewheusser opened 6 years ago
with this:
p = np.array([0.1, 0.0, 0.7, 0.2]) index = np.random.choice([0, 1, 2, 3], p = p.ravel())
with this: