Skip to content

[MRG] Fix tests on master, better input validation. #2293

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
Jul 28, 2013

Conversation

amueller
Copy link
Member

much better input validation, test that warning is raised on (n_samples,1) y

Let's wait for travis' opinion on this. I also want to add a whatsnew entry.

@@ -651,6 +651,9 @@ def test_classifiers_input_shapes():
if name in ["MultinomialNB", "LabelPropagation", "LabelSpreading"]:
# TODO some complication with -1 label
continue
if name in ["DecisionTreeClassifier", "ExtraTreeClassifier"]:
# the column y interface is used by the forests
Copy link
Member

Choose a reason for hiding this comment

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

Maybe a slightly more informative comment: such as "we don't raise the warning in those estimators".

@GaelVaroquaux
Copy link
Member

No other comment

@amueller
Copy link
Member Author

ok changed the comment.

@amueller
Copy link
Member Author

maybe @glouppe might want to have a look? or @larsmans ?

ogrisel added a commit that referenced this pull request Jul 28, 2013
[MRG] Fix tests on master, better input validation.
@ogrisel ogrisel merged commit e0e900f into scikit-learn:master Jul 28, 2013
@ogrisel
Copy link
Member

ogrisel commented Jul 28, 2013

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.

3 participants