Skip to content

Instantly share code, notes, and snippets.

@lettergram
Last active August 29, 2015 14:17
Embed
What would you like to do?
PCA in python
import numpy as np
matrix = np.matrix(matrix) * np.matrix(matrix).transpose()
U,S,V = np.linalg.svd(matrix)
T = U * S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment