Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hadrienj/bc46fc3da9728b9919229451ec44143f to your computer and use it in GitHub Desktop.
Save hadrienj/bc46fc3da9728b9919229451ec44143f to your computer and use it in GitHub Desktop.
epsilon = 0.1
X_ZCA = U.dot(np.diag(1.0/np.sqrt(S + epsilon))).dot(U.T).dot(X_norm)
plotImage(X[12, :])
plotImage(X_ZCA[12, :])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment