On this page
sklearn.utils.validation.check_memory
- sklearn.utils.validation.check_memory(memory)[source]
-
Check that
memoryis joblib.Memory-like.joblib.Memory-like means that
memorycan be converted into a joblib.Memory instance (typically a str denoting thelocation) or has the same interface (has acachemethod).- Parameters:
-
- memoryNone, str or object with the joblib.Memory interface
-
- If string, the location where to create the
joblib.Memoryinterface. - If None, no caching is done and the Memory object is completely transparent.
- If string, the location where to create the
- Returns:
-
- memoryobject with the joblib.Memory interface
-
A correct joblib.Memory object.
- Raises:
-
- ValueError
-
If
memoryis not joblib.Memory-like.
© 2007–2022 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.1/modules/generated/sklearn.utils.validation.check_memory.html