从pickle文件获取信息

时间:2016-08-29 10:49:14

标签: python scipy sparse-matrix pickle

我完全陷入困境,需要你的帮助!通过pickle文件打开和重新获取信息。我想,我已经把它解码为csr_matrix

import pickle
import scipy.sparse as ss

with open('items_10000_matrix.pickle', 'rb') as f:
    data_new = pickle.load(f,encoding = 'bytes')
print(ss.isspmatrix_csr(data_new))
lol = ss.csr_matrix.tocsr(data_new)
print(lol.get_shape)

但错误是:indptr not found。 此外,我还有另一次尝试: CRS matrix:Shape not found

文件:https://drive.google.com/file/d/0B8_NCpMplj2hY1AwTFBMZkNnMlU/view

0 个答案:

没有答案