-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 1] Fix sklearn.model_selection.tests.test_split:test_cv_iterable_wrapper on numpy master #7946
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
[MRG + 1] Fix sklearn.model_selection.tests.test_split:test_cv_iterable_wrapper on numpy master #7946
Conversation
Until now we were in a edge case on assert_array_equal
splits_are_equal = True | ||
except AssertionError: | ||
splits_are_equal = False | ||
assert_false(splits_are_equal, "If the splits are randomized, " |
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.
I am afraid I did not find a better way of emulating numpy.testing.assert_not_equal
. Better suggestions welcome!
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.
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.
we could also implement our own version of that?
Is this related to #7823 |
LGTM as quick fix. |
LGTM as well. Feel free to merge! |
I can refactor this out of #7823... |
Thx @lesteve |
Until now we were in a edge case on assert_array_equal
Until now we were in a edge case on assert_array_equal
Until now we were in a edge case on assert_array_equal
* 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)
Until now we were in a edge case on assert_array_equal
Until now we were in a edge case on assert_array_equal
Until now we were in a edge case on assert_array_equal
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_equal
which seems better at dealing with nested structures containing arrays.