python稀疏矩阵sparse matrix的保存和读取
from scipy import sparse
sparse.save_npz('./filename.npz', csr_matrix_variable) #保存
csr_matrix_variable = sparse.load_npz('path.npz') #读
参考:
https://blog.csdn.net/weixin_36218261/article/details/78297716
from scipy import sparse
sparse.save_npz('./filename.npz', csr_matrix_variable) #保存
csr_matrix_variable = sparse.load_npz('path.npz') #读
参考:
https://blog.csdn.net/weixin_36218261/article/details/78297716