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
转载于:https://www.cnblogs.com/HITSZ/p/9057594.html