load_npz¶
-
sparse.load_npz(filename)[source]¶ Load a sparse matrix in numpy’s
.npzformat from disk. Note: This is not binary compatible with scipy’ssave_npz()output. Will only load files saved by this package.Parameters: filename (file-like object, string, or pathlib.Path) – The file to read. File-like objects must support the seek()andread()methods.Returns: The sparse matrix at path filenameReturn type: COO Example
See
save_npzfor usage examples.