predict-facial-attractiveness icon indicating copy to clipboard operation
predict-facial-attractiveness copied to clipboard

my_face_rating error

Open vengex opened this issue 5 years ago • 0 comments

Warning (from warnings module): File "C:\Python27\lib\site-packages\sklearn\base.py", line 253 UserWarning) UserWarning: Trying to unpickle estimator DecisionTreeRegressor from version pre-0.18 when using version 0.20.3. This might lead to breaking code or invalid results. Use at your own risk.

Traceback (most recent call last): File "C:\Python27\predict-facial-attractiveness-master\source\myPredict.py", line 7, in clf = joblib.load(root+'model\my_face_rating.pkl') File "C:\Python27\lib\site-packages\sklearn\externals\joblib\numpy_pickle.py", line 596, in load return load_compatibility(fobj) File "C:\Python27\lib\site-packages\sklearn\externals\joblib\numpy_pickle_compat.py", line 226, in load_compatibility obj = unpickler.load() File "C:\Python27\lib\pickle.py", line 864, in load dispatchkey File "C:\Python27\lib\site-packages\sklearn\externals\joblib\numpy_pickle_compat.py", line 177, in load_build Unpickler.load_build(self) File "C:\Python27\lib\pickle.py", line 1223, in load_build setstate(state) File "sklearn\tree_tree.pyx", line 649, in sklearn.tree._tree.Tree.setstate KeyError: 'max_depth'

vengex avatar Apr 02 '19 17:04 vengex