1 min readDec 3, 2019
Hello! Thanks for reading. :)
Yes! The ‘size’ parameter should enable one to bypass use of a loop. I have not tested it yet, but the speedup ought to be fairly large!
The only trouble with using it here is that it is not clear to me from the documentation whether the probability of drawing a given example is taken in consideration per sample drawn, or over the entire returned array. This matters due to our sampling *without* replacement.