joblib 与 pickle 的不同用例是什么? [英] What are the different use cases of joblib versus pickle?

查看:30
本文介绍了joblib 与 pickle 的不同用例是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:我刚刚开始使用 scikit-learn,并在页面底部阅读关于 joblib 对比泡菜.

Background: I'm just getting started with scikit-learn, and read at the bottom of the page about joblib, versus pickle.

用joblib代替pickle可能更有意思(joblib.dump & joblib.load),在大数据上效率更高,但是只能pickle到磁盘,不能到字符串

it may be more interesting to use joblib’s replacement of pickle (joblib.dump & joblib.load), which is more efficient on big data, but can only pickle to the disk and not to a string

我在 Pickle 上阅读了这个问答,Python 中 pickle 的常见用例 不知道这里的社区是否可以分享joblib 和pickle 之间的区别?什么时候应该使用一个?

I read this Q&A on Pickle, Common use-cases for pickle in Python and wonder if the community here can share the differences between joblib and pickle? When should one use one over another?

推荐答案

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