This is documentation for an old release of Scikit-learn (version 0.22). Try the latest stable release (version 1.6) or development (unstable) versions.
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 thelocation
) or has the same interface (has acache
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.