Ticket #1061 (closed bug: fixed)
Unpickled SimpleTreeClassifier fails with an abort trap.
|Reported by:||ales||Owned by:||jurezb|
import Orange, pickle data = Orange.data.Table("iris") c = Orange.classification.tree.SimpleTreeLearner(data) c1 = pickle.loads(pickle.dumps(c)) c1(data)
tdidt_simple.cpp:770: failed assertion `type == Regression' Abort trap
It seems the class does not even implement the proper __reduce__ method (and survives the pickle.loads(pickle.dumps(c)) simply because it is default constructable (but left in an unspecified state). At the least it should raise an exception at pickling or unpickling, and not exit the process when used.