Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x Keras在哪里存储MNIST的下载数据?_Python 3.x_Keras - Fatal编程技术网

Python 3.x Keras在哪里存储MNIST的下载数据?

Python 3.x Keras在哪里存储MNIST的下载数据?,python-3.x,keras,Python 3.x,Keras,我运行了下面的脚本: 我相信这些线路下载了数据 from keras.datasets import mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() 我正在Windows 10上运行此脚本。数据存储在哪里?我想清理,因为我的磁盘空间有限。您可以随时在github上查看Keras代码。在您的情况下,此处需要获取文件功能: 你的问题的答案是: 默认情况下,url来源处的文件将下载到 cache_dir~/.ke

我运行了下面的脚本:

我相信这些线路下载了数据

from keras.datasets import mnist    
(x_train, y_train), (x_test, y_test) = mnist.load_data()

我正在Windows 10上运行此脚本。数据存储在哪里?我想清理,因为我的磁盘空间有限。

您可以随时在github上查看Keras代码。在您的情况下,此处需要获取文件功能:

你的问题的答案是:

默认情况下,url
来源处的文件将下载到
cache_dir
~/.keras
,放置在cache_subdir
数据集
中, 并给定文件名
fname
。文件的最终位置 因此,
example.txt
将是
~/.keras/datasets/example.txt


我会回答我自己的问题

我在这里找到的。我正在使用Windows10

C:\Users\<user_name>\.keras\datasets
C:\Users\\.keras\dataset

在WinPython中,我在C:\WPy-3662\settings\.keras\dataset中找到了它