Skip to content

Instantly share code, notes, and snippets.

@karanpathak
Last active May 22, 2020 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karanpathak/d2bd3a22f0af0bd349cc8e9f668969d2 to your computer and use it in GitHub Desktop.
Save karanpathak/d2bd3a22f0af0bd349cc8e9f668969d2 to your computer and use it in GitHub Desktop.
# Import the Memory class from joblib
from joblib import Memory
# Create your cache directory
cache_dir="<path-to-your-directory>/sample_cache_dir"
# Create a memory object
mem = Memory(cache_dir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment