-
-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
[MRG] _get_estimators_indices() in BaseBagging class does not generate indices properly #16437
Conversation
Thanks for the pull request! |
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.
As a regression test, you can use the one that you reported in the issue. This is good.
I am wondering if we have something similar regarding the feature indices? |
Regarding the failing tests, this is due to the change of the score in one of the docstring. This should be corrected as well. |
No similar problem regarding the |
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.
Please add an entry to the change log at doc/whats_new/v0.23.rst under bug fixes. Like the other entries there, please reference this pull request with :pr: and credit yourself (and other contributors if applicable) with :user:
I think that we change the behaviour of ExtraTrees* as well, so we should add a note in the what's new on the top (change in behaviour section)
Co-Authored-By: Guillaume Lemaitre <g.lemaitre58@gmail.com>
…into issue_16436
Added an entry to the change log as you suggested. Thanks a lot.
I have no idea on this one. Do I have to do something more? |
No need for this |
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.
Apart from correcting the what's new entry, everything looks good.
We will need a second review.
@jnothman Could you have a look at this one?
I push a quick reformatting of the what's new to follow the 80 characters limit. |
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.
Thanks @chofchof ! LGTM.
Reference Issues/PRs
Fixes #16436.
What does this implement/fix? Explain your changes.
It solves the bug reported by the issue #16436,
_get_estimators_indices()
inBaseBagging
class does not generate indices properly.As Joel Nothman suggested, the seed is passed directly into
_generate_bagging_indices()
instead of the numpyRandomState
object generated by the seed.Any other comments?
None.