Florian Lindner
2016-05-16 14:08:07 UTC
Hello,
I have an array of shape (n, 2) from which I want to extract a random sample
of 20% of rows. The choosen samples should be removed the original array and
moved to a new array of the same shape (n, 2).
What is the most clever way to do with numpy?
Thanks,
Florian
I have an array of shape (n, 2) from which I want to extract a random sample
of 20% of rows. The choosen samples should be removed the original array and
moved to a new array of the same shape (n, 2).
What is the most clever way to do with numpy?
Thanks,
Florian