Created
October 10, 2017 03:13
-
-
Save manvillej/dc7ce19de96cc6e5e4fec4871233b7c3 to your computer and use it in GitHub Desktop.
Random selection of rows using Numpy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
perm = np.random.permutation(m) | |
sel = X[perm[0:100],:] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment