-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] Hotfix for _criterion.pyx #5305
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
looks good, thanks @jmschrei |
@@ -458,7 +458,7 @@ cdef class ClassificationCriterion(Criterion): | |||
self.weighted_n_left -= w | |||
|
|||
# Upate right part statistics |
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.
typo: "upate"
Apart from my comments, LGTM as well. |
There are actual tests to make sure the impurity improvement calculation is correct. Those tests failed before the patch. |
5687385
to
798aeaf
Compare
Typo fixed. Should be good to go. |
LGTM. Let's wait for build bots to finish and merge |
+1 for adding tests to check the correctness of the impurity values wrt to hand-computed values, i'll add that to list of tasks in #5212. |
Merging, thanks for the hotfix @jmschrei |
[MRG] Hotfix for _criterion.pyx
thanks guys for the quick fix
|
thanks ! |
I accidentally included a few variable name errors in the last round of review for #5278 because I did not recompile it before running unit tests. This is a patch to fix solely those issues, as noticed also in #5304.
@agramfort @GaelVaroquaux @glouppe @arjoly