Skip to content
Advertisement

Tag: sampling

randomly choose different sets in numpy?

I am trying to randomly select a set of integers in numpy and am encountering a strange error. If I define a numpy array with two sets of different sizes, np.random.choice chooses between them without issue: However, once the numpy array are sets of the same size, I get a value error: Could be user error, but I’ve checked several

Advertisement