Writing and Reading Eigenvalues & Eigenvectors, fo

2019-08-20 09:47发布

Sorry if this better belongs on the page of my previous question: np.savetxt triggers ValueError. Why? but I don't think I'm going to get any more replies there at this point.

The allow_pickle suggestions still don't work, so what I can try instead?

Also, what's a pickle? I've only ever known it as a type of food.

Thanks

1条回答
We Are One
2楼-- · 2019-08-20 10:09

Pickle is a serialization technique converting python objects into byte streams. Pickles are most commonly used for network communication in a distributed environment. For example,if you have a cluster and you want to pass a specific python object from one machine to another , the most common way to do this is by pickling the object,pass it through the network and then unpickling it on the other machine. They can also be used as a compression technique for efficiently saving a huge python object on your local fs. For using pickles you have to import the library

    import pickle.py

and then allow the program to read/write pickled files

    allow_pickle = true
查看更多
登录 后发表回答