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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。