写作和阅读特征值特征向量,跟进 [英] Writing and Reading Eigenvalues & Eigenvectors, follow up

查看:106
本文介绍了写作和阅读特征值特征向量,跟进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

抱歉,这是否更好地属于我上一个问题的页面: np.savetxt触发ValueError.为什么? 但我认为目前我不会再收到任何答复.

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.

allow_pickle建议仍然无效,因此我可以尝试些什么呢?

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.

谢谢

推荐答案

Pickle是一种将python对象转换为字节流的序列化技术.泡菜最常用于分布式环境中的网络通信. 例如,如果您有一个群集,并且想要将特定的python对象从一台计算机传递到另一台计算机,则最常见的方法是对对象进行腌制,将其通过网络,然后在另一台计算机上将其拆开. 它们也可以用作一种压缩技术,以在本地fs上有效保存巨大的python对象. 要使用泡菜,您必须导入库

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

这篇关于写作和阅读特征值特征向量,跟进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆