aia-uclouvain/pydl8.5

Pickle fails when attempting to save a fitted tree

Opened this issue · 0 comments

Hi there,

It would be very nice to be able to save fitted tree objects for later use (e.g. making new predictions).

Running pickle.dumps(clf) produces the following error:
PicklingError: Can't pickle <function at 0x000001337F5FB1F0>: attribute lookup on main failed

Is there another way to save these trees for reuse?

Thanks,
Sam