You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "myPredict.py", line 8, in
clf = joblib.load(root+'model/my_face_rating.pkl')
File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 573, in load
return load_compatibility(fobj)
File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 226, in load_compatibility
obj = unpickler.load()
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 177, in load_build
Unpickler.load_build(self)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1223, in load_build
setstate(state)
File "sklearn/tree/_tree.pyx", line 632, in sklearn.tree._tree.Tree.setstate (sklearn/tree/_tree.c:8128)
KeyError: 'max_depth'
The text was updated successfully, but these errors were encountered:
加载决策树pkl模型出错,是不是对sklearn版本有要求?
Traceback (most recent call last):
File "myPredict.py", line 8, in
clf = joblib.load(root+'model/my_face_rating.pkl')
File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 573, in load
return load_compatibility(fobj)
File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 226, in load_compatibility
obj = unpickler.load()
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 177, in load_build
Unpickler.load_build(self)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1223, in load_build
setstate(state)
File "sklearn/tree/_tree.pyx", line 632, in sklearn.tree._tree.Tree.setstate (sklearn/tree/_tree.c:8128)
KeyError: 'max_depth'
The text was updated successfully, but these errors were encountered: