源代码在:使用Python实现神经网络 - 小鹏的专栏 - CSDN博客
这是运行出错的其中一段
def load_mnist(dataset="training_data", digits=np.arange(10), path="."):
if dataset == "training_data":
fname_image = os.path.join(path, 'train-images-idx3-ubyte')
fname_label = os.path.join(path, 'train-labels-idx1-ubyte')
elif dataset == "testing_data":
fname_image = os.path.join(path, 't10k-images-idx3-ubyte')
fname_label = os.path.join(path, 't10k-labels-idx1-ubyte')
else:
raise ValueError("dataset must be 'training_data' or 'testing_data'")
显示的是:FileNotFoundError: [Errno 2] No such file or directory: '.\\train-labels-idx1-ubyte'
说明程序并没有找到训练集。。mnist训练集我也下载了,请问要放在什么位置代码才能找到?或者代码需要怎么改变呢?
请大神帮帮忙~~~~~~~~~
这是运行出错的其中一段
def load_mnist(dataset="training_data", digits=np.arange(10), path="."):
if dataset == "training_data":
fname_image = os.path.join(path, 'train-images-idx3-ubyte')
fname_label = os.path.join(path, 'train-labels-idx1-ubyte')
elif dataset == "testing_data":
fname_image = os.path.join(path, 't10k-images-idx3-ubyte')
fname_label = os.path.join(path, 't10k-labels-idx1-ubyte')
else:
raise ValueError("dataset must be 'training_data' or 'testing_data'")
显示的是:FileNotFoundError: [Errno 2] No such file or directory: '.\\train-labels-idx1-ubyte'
说明程序并没有找到训练集。。mnist训练集我也下载了,请问要放在什么位置代码才能找到?或者代码需要怎么改变呢?
请大神帮帮忙~~~~~~~~~