Skip to content

Instantly share code, notes, and snippets.

Avatar

Dominique Maniry dmaniry

View GitHub Profile
View gist:5170087
import numpy as np
from scipy import linalg
from sklearn.utils import array2d, as_float_array
from sklearn.base import TransformerMixin, BaseEstimator
class ZCA(BaseEstimator, TransformerMixin):
def __init__(self, regularization=10**-5, copy=False):
self.regularization = regularization