sklearn.utils.validation.check_memory

sklearn.utils.validation.check_memory(memory) [source]

Check that memory is joblib.Memory-like.

joblib.Memory-like means that memory can be converted into a joblib.Memory instance (typically a str denoting the location) or has the same interface (has a cache method).

Parameters
memoryNone, str or object with the joblib.Memory interface
Returns
memoryobject with the joblib.Memory interface
Raises
ValueError

If memory is not joblib.Memory-like.

© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.validation.check_memory.html