-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
FIX Ignore distutils warning in scipy-dev [scipy-dev] #21517
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
FIX Ignore distutils warning in scipy-dev [scipy-dev] #21517
Conversation
This reverts commit cab39ec.
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.
The last test failure is a warning in test_dbscan_metric_params
is related to numpy/numpy#17582 where there is a RuntimeWarning
:
RuntimeWarning('Trying to dealloc data, but a memory policy is not set. If you take ownership of the data, you must set a base owning the data (e.g. a PyCapsule).'
@@ -544,7 +544,7 @@ def transform(self, X): | |||
|
|||
indptr = np.empty(n_samples + 1, dtype=int) | |||
indptr[0] = 0 | |||
np.sum(X_mask, axis=1, out=indptr[1:]) | |||
np.sum(X_mask, axis=1, out=indptr[1:], dtype=indptr.dtype) |
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.
This is a major fix for numpy 1.22 otherwise the encoder does not work at all. I think this should be backported to 1.0.2.
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.
+1 for merge even if the dbscan test still fail because this is a net improvement.
Yeah!
|
…in OneHotEncoder (scikit-learn#21517) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…in OneHotEncoder (scikit-learn#21517) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…in OneHotEncoder (scikit-learn#21517) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…in OneHotEncoder (#21517) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Reference Issues/PRs
Addresses some of #21524
Related to #21499
What does this implement/fix? Explain your changes.
The scipy-dev main build is failing because numpy imports distuils.sysconfig` during test collection time.