Closed Thytu closed 2 years ago
Note : I really like what you did guys, great work!
I would be happy to help if you're interested 🙂
Thank you very much for your contribution. I will look into it and merge afterwards (in the coming weeks). Sorry, we did not merge yet. We did not get to it.
Thank you very much for your contribution. I will look into it and merge afterwards (in the coming weeks). Sorry, we did not merge yet. We did not get to it.
Happy to help
We looked into this a little further and found that we could do some deeper changes together with the change you propose to minimize our dependencies. Thus, we now implemented our own version of you PR (which gets rid of the old loading function all together). I will close this PR, but very much appreciate it and am happy that we could implement the functionality that you missed! If you want to use it, it is in the current pip version already :)
As you were using lambdas in
load_model
,TabPFNClassifier
couldn't be pickled. Those few changes allowsTabPFNClassifier
to be pickled.Test example:
Before :
AttributeError: Can't pickle local object 'load_model.<locals>.<lambda>'
After :
Pickle