I'm working on some fairly computational intensive calculations that deal with numpy matrices and ndarrays, and from some digging around, there are about a dozen ways not to implement memoization, generally full of collisions, and issues with ndarrays being mutable objects.
Has anyone come across a fairly general memoisation decorator that can handle numpy objects?
2 Answers 2
How about this package:
(削除) http://packages.python.org/joblib/memory.html (削除ここまで)
2021 update https://joblib.readthedocs.io/en/latest/generated/joblib.Memory.html
-
12Could you elaborate a bit instead of just posting a link? meta.stackexchange.com/a/8259/130885endolith– endolith2013年05月08日 16:34:11 +00:00Commented May 8, 2013 at 16:34
An alternative is my package jug:
http://packages.python.org/Jug
It is similar to joblib, but with a slightly different approach.
Explore related questions
See similar questions with these tags.