You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just trained a classifier, but when I try and dump the model with pickle I get the following:
Traceback (most recent call last):
File "/obfuscated/train.py", line 43, in <module>
pickle.dump(classifier, open(filename, "wb"), protocol=5)
_pickle.PicklingError: Can't pickle <function check_array at 0x14df40540>: it's not the same object as sklearn.utils.validation.check_array
To Reproduce
I'm using scikit-learn==1.5.0, hiclass==4.10.0, on Python 3.11.1, with the following sample of code:
I've just trained a classifier, but when I try and dump the model with pickle I get the following:
Traceback (most recent call last):
File "/obfuscated/train.py", line 43, in <module>
pickle.dump(classifier, open(filename, "wb"), protocol=5)
_pickle.PicklingError: Can't pickle <function check_array at 0x14df40540>: it's not the same object as sklearn.utils.validation.check_array
To Reproduce
I'm using scikit-learn==1.5.0, hiclass==4.10.0, on Python 3.11.1, with the following sample of code:
I have never come across this error before, but I have reasons to believe that it is caused by a conflict when importing libraries. Can you please send me the full code with imports included? It will be easier to figure out what is causing it if I can reproduce.
Describe the bug
I've just trained a classifier, but when I try and dump the model with pickle I get the following:
To Reproduce
I'm using
scikit-learn==1.5.0
,hiclass==4.10.0
, on Python 3.11.1, with the following sample of code:Expected behavior
I'd expect the model to dump with pickle.
(PS: thanks a lot for this library!)
The text was updated successfully, but these errors were encountered: