10

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?

asked Mar 19, 2011 at 14:45

2 Answers 2

9

How about this package:

(削除) http://packages.python.org/joblib/memory.html (削除ここまで)

2021 update https://joblib.readthedocs.io/en/latest/generated/joblib.Memory.html

keepAlive
6,7055 gold badges28 silver badges43 bronze badges
answered Mar 19, 2011 at 15:02
1
1

An alternative is my package jug:

http://packages.python.org/Jug

It is similar to joblib, but with a slightly different approach.

answered Mar 28, 2011 at 18:56

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.