Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use numpy.arange in RandomSampler (apache#10768)
Significant speedup for large datasets: In [2]: %timeit current_sample(1529*8192) 12.3 s ± 721 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [3]: %timeit np_sample(1529*8192) 641 ms ± 6.7 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
- Loading branch information