Created
March 20, 2014 23:58
-
-
Save cwidmer/9676696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
cache linear algebra (or any other) operations | |
based on hashes of input arguments | |
""" | |
import numpy.linalg as la | |
from sklearn.external import joblib | |
mem = joblib.Memory(cachedir=cachedir, verbose=True, compress=True) | |
#mem.clear() | |
cached_eigh = mem.cache(la.eigh) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment