-
-
Save amankharwal/6c5f9ac11d5a92fca689967810d2e486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.datasets import load_digits | |
import numpy as np | |
def zero_center(X): | |
return X - np.mean(X, axis=0) | |
digits_data = digits = load_digits() | |
x = zero_center(digits_data["data"].astype(np.float64)) | |
np.random.shuffle(x) | |
print(x.shape) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment