[MRG + 1] Fix sklearn.model_selection.tests.test_split:test_cv_iterable_wrapper on numpy master#7946
Merged
raghavrv merged 1 commit intoscikit-learn:masterfrom Nov 29, 2016
Conversation
Until now we were in a edge case on assert_array_equal
lesteve
commented
Nov 27, 2016
| splits_are_equal = True | ||
| except AssertionError: | ||
| splits_are_equal = False | ||
| assert_false(splits_are_equal, "If the splits are randomized, " |
Member
Author
There was a problem hiding this comment.
I am afraid I did not find a better way of emulating numpy.testing.assert_not_equal. Better suggestions welcome!
Member
Member
There was a problem hiding this comment.
we could also implement our own version of that?
Member
|
Is this related to #7823 |
Member
|
LGTM as quick fix. |
Member
|
LGTM as well. Feel free to merge! |
Member
|
I can refactor this out of #7823... |
Member
|
Thx @lesteve |
6 tasks
sergeyf
pushed a commit
to sergeyf/scikit-learn
that referenced
this pull request
Feb 28, 2017
Until now we were in a edge case on assert_array_equal
Sundrique
pushed a commit
to Sundrique/scikit-learn
that referenced
this pull request
Jun 14, 2017
Until now we were in a edge case on assert_array_equal
jakirkham
pushed a commit
to jakirkham/scikit-learn
that referenced
this pull request
Jun 15, 2017
Until now we were in a edge case on assert_array_equal
amueller
pushed a commit
that referenced
this pull request
Jun 19, 2017
* Fix tests on numpy master (#7946) Until now we were in a edge case on assert_array_equal * Fix tests on numpy master (#8355) numpy.apply_along_axis has changed behaviour when the function passed in returns a 2d array * [MRG] Updated plot_stock_market.py to use Google Finance (#9010) * DOC updated plot_stock_market.py to use Google Finance The implementations is intentionally very basic not to distract the users from the example. Specifically unlike ``quotes_historical_yahoo_ochl`` it does not cache downloaded data. I also had to remove some symbols because the have no data on Google for the specified date interval. These are WBA, LMT, KFT and MTU. Closes #8899 * DOC removed plot_stock_market.py from expected failing examples * Addressed review comments * Addressed another pass of review comments * [MRG] Remove DeprecationWarnings in examples due to using floats instead of ints (#8040)
NelleV
pushed a commit
to NelleV/scikit-learn
that referenced
this pull request
Aug 11, 2017
Until now we were in a edge case on assert_array_equal
paulha
pushed a commit
to paulha/scikit-learn
that referenced
this pull request
Aug 19, 2017
Until now we were in a edge case on assert_array_equal
maskani-moh
pushed a commit
to maskani-moh/scikit-learn
that referenced
this pull request
Nov 15, 2017
Until now we were in a edge case on assert_array_equal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As mentioned in #7910 (comment) the tests started failing with numpy master one day or so ago.
What does this implement/fix? Explain your changes.
It looks like we were in a edge case of assert_array_equal. See numpy/numpy#8323 (comment) for more details.
I am using
numpy.testing.assert_equalwhich seems better at dealing with nested structures containing arrays.