Package mdp :: Package caching
[hide private]
[frames] | no frames]

Package caching

MDP extension to cache the execution phase of nodes.

This extension is based on the joblib library by Gael Varoquaux, available at http://packages.python.org/joblib/. At the moment, the extension is based on joblib v. 0.4.6.

Classes [hide private]
  cache
Context manager for the 'cache_execute' extension.
Functions [hide private]
 
activate_caching(cachedir=None, cache_classes=None, cache_instances=None, verbose=0)
Activate caching extension.
 
deactivate_caching(cachedir=None)
De-activate caching extension.
 
set_cachedir(cachedir=None, verbose=0)
Set root directory for the joblib cache.
Variables [hide private]
  __package__ = 'mdp.caching'
Function Details [hide private]

activate_caching(cachedir=None, cache_classes=None, cache_instances=None, verbose=0)

 

Activate caching extension.

By default, the cache is activated globally (i.e., for all instances of Node). If cache_classes or cache instances are specified, the cache is activated only for those classes and instances.

Parameters:
  • cachedir - The root of the joblib cache, or a temporary directory if None
  • cache_classes - A list of Node subclasses for which caching is activated. Default value: None
  • cache_classes - A list of Node instances for which caching is activated. Default value: None

deactivate_caching(cachedir=None)

 
De-activate caching extension.

set_cachedir(cachedir=None, verbose=0)

 
Set root directory for the joblib cache.
Parameters:
  • cachedir - the cache directory name; if None, a temporary directory is created using TemporaryDirectory
  • verbose - an integer number, controls the verbosity of the cache (default is 0, i.e., not verbose)

Variables Details [hide private]

__package__

Value:
'mdp.caching'