bundles / scipy latest / scipy / datasets / _utils / clear_cache
function
scipy.datasets._utils:clear_cache
source: /scipy/datasets/_utils.py :60
Signature
def clear_cache ( datasets = None ) Summary
Cleans the scipy datasets cache directory.
Extended Summary
If a scipy.datasets method or a list/tuple of the same is provided, then clear_cache removes all the data files associated to the passed dataset method callable(s).
By default, it removes all the cached data files.
Parameters
datasets: callable or list/tuple of callable or None
Notes
Array API Standard Support
clear_cache is not in-scope for support of Python Array API Standard compatible backends other than NumPy.
See dev-arrayapi for more information.
Examples
from scipy import datasets
✓ascent_array = datasets.ascent() ascent_array.shape⚠
datasets.clear_cache([datasets.ascent])
✗Aliases
-
scipy.datasets.clear_cache