Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/ICA.py Secret

Created Jun 10, 2021
Embed
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))
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