Traceback (most recent call last): File "demo_single.py", line 36, in <module> pickle.dump(clf, f) TypeError: can't pickle weakref objects