I run from keras.datasets import mnist
and mnist.load_data()
to downloaded the MNIST data. But I want to know where they are stored. I am using Windows 10 and Anaconda, and I looked into here:-
C:\Users\My_User_Name\Anaconda3\Lib\site-packages\keras\datasets
I can find the text file mnist.py
, but I can't find the downloaded data. Where should I find them? Many thanks!
Looking at the source for that function, we see it uses get_file()
, which says:
By default the file at the url
origin
is downloaded to the cache_dir~/.keras
, placed in the cache_subdirdatasets
, and given the filenamefname
. The final location of a fileexample.txt
would therefore be~/.keras/datasets/example.txt
.
So look in C:\Users\My_User_Name\.keras\datasets
.