8000 CLN GBDTs: don't split on last bin (explicitly) by NicolasHug · Pull Request #13919 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

CLN GBDTs: don't split on last bin (explicitly) #13919

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

Merged
merged 2 commits into from
May 30, 2019

Conversation

NicolasHug
Copy link
Member

In the new GBDTs, splitting on the last bin is useless since it would result in having 0 samples on the right node, which is forbidden.

This PR makes it explicit. (Before, the last bin would be implicitly skipped since we have the condition if n_samples_right < min_samples_leaft: break). I'd rather make it explicit, since it made me introduce a bug while working on #13911

@jnothman jnothman changed the title [MRG] GBDTs: don't split on last bin (explicitly) [MRG] CLN GBDTs: don't split on last bin (explicitly) May 22, 2019
@thomasjpfan thomasjpfan changed the title [MRG] CLN GBDTs: don't split on last bin (explicitly) CLN GBDTs: don't split on last bin (explicitly) May 30, 2019
@thomasjpfan thomasjpfan merged commit ccd6399 into scikit-learn:master May 30, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0