UnpicklingError: invalid load key, '\x00'.
来源:2-7 神经元实现(二分类逻辑斯蒂回归模型实现)
慕标1049315
2019-08-20
写回答
2回答
-
weixin_慕数据6439431
2020-11-22
请问您问题解决了吗?
怎么解决的
00 -
正十七
2019-08-23
同学你好,你的python2还是python3?python2和python3的方式是不一样的。
py3:
def load_data(filename): """read data from data file.""" with open(filename, 'rb') as f: data = pickle.load(f, encoding='bytes') return data[b'data'], data[b'labels']
py2:
def load_data(filename): """read data from data file.""" with open(filename, 'rb') as f: data = cPickle.load(f) return data['data'], data['labels']
012019-08-23
相似问题