Skip to content

[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

Merged
merged 1 commit into from
Sep 23, 2015

Conversation

jmschrei
Copy link
Member

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

@arjoly
Copy link
Member

arjoly commented Sep 23, 2015

looks good, thanks @jmschrei

@@ -458,7 +458,7 @@ cdef class ClassificationCriterion(Criterion):
self.weighted_n_left -= w

# Upate right part statistics
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: "upate"

@ogrisel
Copy link
Member

ogrisel commented Sep 23, 2015

Apart from my comments, LGTM as well.

@ogrisel ogrisel added this to the 0.17 milestone Sep 23, 2015
@jmschrei
Copy link
Member Author

There are actual tests to make sure the impurity improvement calculation is correct. Those tests failed before the patch.

@jmschrei
Copy link
Member Author

Typo fixed. Should be good to go.

@GaelVaroquaux
Copy link
Member

LGTM. Let's wait for build bots to finish and merge

@glouppe
Copy link
Contributor

glouppe commented Sep 23, 2015

+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.

@glouppe
Copy link
Contributor

glouppe commented Sep 23, 2015

Merging, thanks for the hotfix @jmschrei

glouppe added a commit that referenced this pull request Sep 23, 2015
[MRG] Hotfix for _criterion.pyx
@glouppe glouppe merged commit c82ad6d into scikit-learn:master Sep 23, 2015
@agramfort
Copy link
Member

agramfort commented Sep 23, 2015 via email

@arjoly
Copy link
Member

arjoly commented Sep 23, 2015

thanks !

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.

6 participants