Joblib.load键错误:253

时间:2018-01-02 20:00:10

标签: python classification naivebayes joblib

我正在使用Joblib.dump保存朴素贝叶斯分类器。每次我的机器运行时,它都会使用joblib.load(filename)加载模型。这工作了一段时间,但我开始收到这个错误:

File "test.py", line 92, in categorize
subclf = joblib.load('/home/elalo/ServiceNow/multinomial.pkl')
 File "/usr/lib64/python3.4/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 575, in load
    obj = _unpickle(fobj, filename, mmap_mode)
  File "/usr/lib64/python3.4/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 507, in _unpickle
    obj = unpickler.load()
  File "/usr/lib64/python3.4/pickle.py", line 1038, in load
    dispatch[key[0]](self)
KeyError: 253

我目前有Scikit-learn (0.18.1), scipy (0.19.1)

我不确定问题是什么。任何帮助将不胜感激。

谢谢!

0 个答案:

没有答案