Python: how do you store a sparse matrix using python?

前端 未结 7 1814
灰色年华
灰色年华 2021-02-06 06:17

I have got an output using sparse matrix in python, i need to store this sparse matrix in my hard disk, how can i do it? if i should create a database then how should i do?? thi

7条回答
  •  鱼传尺愫
    2021-02-06 07:01

    Adding on the HDF5 support, Python also has NetCDF support which is ideal for matrix form data storage and quick access both sparse and dense. It is included in Python-x,y for windows, which a lot of scientific users of python end up with.

    More numpy based examples can be found in this cookbook.

提交回复
热议问题