-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG+1]FIX serialization bug in the implementation of the pickle protocol #5560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
65893be
to
d53772d
Compare
@@ -622,6 +624,8 @@ cdef class Tree: | |||
|
|||
def __setstate__(self, d): | |||
"""Setstate re-implementation, for unpickling.""" | |||
self.capacity = d["capacity"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overridden below (line 648 in this version of the file). Shall we really have it in the state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say yes, it's documented in the class attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm no let's remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better to infer those.
+1 for merge except for my comment, though it does no harm to add |
Yes it works, thanks :) ! +1 for merge. |
[MRG+1]FIX serialization bug in the implementation of the pickle protocol
great ! |
Seems I arrived too late to the party on this one. |
Ping @glouppe @amueller @jmschrei @jnothman
@ngoix this should solve your bug in the isolation forest pull request.