API Reference#

Classes#

Memory([location, backend, mmap_mode, ...])

A context object for caching a function's return value each time it is called with the same input arguments.

Parallel([n_jobs, backend, return_as, ...])

Helper class for readable parallel mapping.

parallel_config([backend, n_jobs, verbose, ...])

Set the default backend or configuration for Parallel.

Functions#

cpu_count([only_physical_cores])

Return the number of CPUs.

dump(value, filename[, compress, protocol])

Persist an arbitrary Python object into one file.

load(filename[, mmap_mode, ...])

Reconstruct a Python object from a file persisted with joblib.dump.

hash(obj[, hash_name, coerce_mmap])

Quick calculation of a hash to identify uniquely Python objects containing numpy arrays.

register_compressor(compressor_name, compressor)

Register a new compressor.

Deprecated functionalities#

parallel_backend(backend[, n_jobs, ...])

Change the default backend used by Parallel inside a with block.