Skip to content

Instantly share code, notes, and snippets.

@RyotaBannai
Last active December 19, 2018 16:32
Show Gist options
  • Save RyotaBannai/849e2ae1a2b404a3f04d751b1224a2f6 to your computer and use it in GitHub Desktop.
Save RyotaBannai/849e2ae1a2b404a3f04d751b1224a2f6 to your computer and use it in GitHub Desktop.
rng = np.random.RandomState(1)
X_raw = np.dot(rng.rand(2, 2), rng.randn(2, 200)).T
X_mean = X_raw.mean(axis=0)
X -= X_mean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment