-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[WIP] added comments to tree splitter code #8779
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
[WIP] added comments to tree splitter code #8779
Conversation
… randomly drawn is chosen
…constant -> ...constants
…the features array
…nstant in this node
I am not convinced that we should add more comments. The code should self-document and additional comments can highlight some non-straightforward behavior, which seems the case for this code. |
I am also +0 for adding in more comments, in that I am not against them in general but don't see these are necessary. |
Closing, as reviewers appeared unconvinced about adding more comments to that code, and there has been no activity here since 2017. Sorry, thanks for your contribution! |
Reference Issue
Does not fix any issue but should help advance #3628 .
What does this implement/fix? Explain your changes.
No code changes, just adding comments to better understand
what the code in tree/_splitter.pyx does.
Any other comments?
I noticed that I made most of the comment additions only to the
first class (BestSplitter) and it looks like there is quite some code duplication.
If deemed useful, I can also add the same comment additions to the
other three splitter classes in tree/_splitter.pyx (hence this PR is marked as [WIP]).
On the other hand, if #3628 is going to be addressed soon, it may not be useful to
duplicate such comments.