scipy.datasets.
clear_cache#
- scipy.datasets.clear_cache(datasets=None)[source]#
Cleans the SciPy datasets cache directory.
- Parameters:
- datasetscallable or list/tuple of callable or None
Dataset whose cached files are to be removed. If None (default), all cached files are removed.
Notes
Array API Standard Support
clear_cacheis not in-scope for support of Python Array API Standard compatible backends other than NumPy.See Support for the array API standard for more information.
Examples
>>> from scipy import datasets >>> ascent_array = datasets.ascent() >>> ascent_array.shape (512, 512) >>> datasets.clear_cache([datasets.ascent]) Cleaning the file ascent.dat for dataset ascent