关于深度学习的theano教程?

时间:2017-03-31 14:23:52

标签: deep-learning theano

查看http://deeplearning.net/tutorial/gettingstarted.html

我使用python3.5在Windows 7中编写代码

import pickle, gzip, numpy

f = gzip.open('mnist.pkl.gz', 'rb')
train_set, vaild_set, test_set = pickle.load(f)
f.close()

但我收到错误:

Traceback (most recent call last):
  File "e:\python_workspace\theanoTest\DataSet.py", line 7, in <module>
    train_set, vaild_set, test_set = pickle.load(f)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 614: ordinal not in range(128)

但是在python3中,默认编码是'utf-8'

import sys
print(sys.getdefaultencoding())

所以我不知道为什么会发生错误?

0 个答案:

没有答案