tacco.utils.complete_choice¶
- complete_choice(a, size, seed=42)[source]¶
Similar to
numpy.random.choice()
with replace=False, but with special behaviour for size>a.shape[0]. The input array is shuffled and concatenated as often as necessary to give size choices. This makes the multiple choices appear as equally as possible.