Skip to content

Instantly share code, notes, and snippets.

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