{ } Raw JSON

bundles / scipy 1.18.0 / 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.

Parameters

datasets : callable 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_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])
✓
Cleaning the file ascent.dat for dataset ascent

Aliases

  • scipy.datasets.clear_cache

Referenced by