Skip to content

Instantly share code, notes, and snippets.

@RyotaBannai
Last active December 19, 2018 16:02
Show Gist options
  • Save RyotaBannai/f7d112ff875cdd0c0c13c14007ddee9b to your computer and use it in GitHub Desktop.
Save RyotaBannai/f7d112ff875cdd0c0c13c14007ddee9b to your computer and use it in GitHub Desktop.
n = 2;
n_PC = v[:, 0:n]
#transform matrix X to two dimension matrix
T = np.dot(X, n_PC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment