Skip to content

Instantly share code, notes, and snippets.

View yueranyuan's full-sized avatar

Yueran (Aaron) Yuan yueranyuan

View GitHub Profile
import numpy as np
from scipy import linalg
class ZCA():
"""
Performs ZCA. Based on
https://gist.github.com/duschendestroyer/5170087
"""
def __init__(self, regularization=10**-5):
self.regularization = regularization