[MRG+2] DummyClassifier and DummyRegressor issues#8931
[MRG+2] DummyClassifier and DummyRegressor issues#8931MechCoder merged 1 commit intoscikit-learn:masterfrom Attractadore:feature-2
Conversation
jnothman
left a comment
There was a problem hiding this comment.
I'm not sure we need the change in fit, but LGTM
|
travis fails |
|
What are these tests and what do they check for? |
|
You can run the tests with |
|
Please use "Fix #issueNumber" in your PR description, this way the associated issue gets closed automatically when the PR is merged. For more details, look at this. I have edited your description but please remember to do it next time. |
|
If you look at the Travis log, you'll see that the test failing is: It seems like you just added this test so you should understand why it is failing. You can run only this test via: |
|
Dummy clf predict method called dummy clf predict_proba method, which still checked if X was finite. I've removed the finite check. Should be OK now. |
|
Travis failures look genuine |
|
Looks like the travis fails on other tests (NuSVC and SVC) |
…ressor, added 2 tests
|
It seems like the Appveyor build failures are unrelated. Are we allowed to merge? |
|
If you approve, then of cource. |
|
Thanks! I merged because of #9111 |
…ressor, added 2 tests (scikit-learn#8931)
…ressor, added 2 tests (scikit-learn#8931)
…ressor, added 2 tests (scikit-learn#8931)
…ressor, added 2 tests (scikit-learn#8931)
…ressor, added 2 tests (scikit-learn#8931)
…ressor, added 2 tests (scikit-learn#8931)
…ressor, added 2 tests (scikit-learn#8931)
…ressor, added 2 tests (scikit-learn#8931)
Reference Issue
Fix #8916
What does this implement/fix? Explain your changes.
Removes call to _assert_all_finite in Dummy predict() method and
adds an array check to fit(). Also added tests for this.
Any other comments?