-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
numpy dev broken again? #7994
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
Comments
I am taking this one. |
I got the following warning while running the tests on local Do you think we should change the way we compare ? I was thinking of looping over the multioutput and check if each element is in multioutput_options. |
This is the line causing the error with numpy master indeed. I think I would replace it with something like this (untested): if isinstance(multioutput, six.string_types) and multioutput not in multioutput_options:
# raise meaningful error message
elif multitoutput is not None:
multioutput = check_array(multioutput, ensure_2d=False)
# rest of the code goes here The thing is that array comparison is a bit finicky in master, so it is easier to do simpler cases before more complicated ones (is it a string, if not a string is it None, otherwise generic case with check_array) |
@aashil please open a PR and we can discuss the code changes there in more details. I would advise you to install numpy from master to work on this issue provided you are not too uncomfortable with the idea. |
fixed in #8011 |
Not sure if that was raised before but it seems the numpy dev travis is broken again because of string comparisons:
https://travis-ci.org/scikit-learn/scikit-learn/jobs/181514958
The text was updated successfully, but these errors were encountered: