Skip to content

Instantly share code, notes, and snippets.

@manvillej
Created October 10, 2017 03:13
Show Gist options
  • Save manvillej/dc7ce19de96cc6e5e4fec4871233b7c3 to your computer and use it in GitHub Desktop.
Save manvillej/dc7ce19de96cc6e5e4fec4871233b7c3 to your computer and use it in GitHub Desktop.
Random selection of rows using Numpy
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