Skip to content

Instantly share code, notes, and snippets.


amankharwal/ Secret

Created Jun 10, 2021
What would you like to do?
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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment