8000 FIX Ignore distutils warning in scipy-dev [scipy-dev] by thomasjpfan · Pull Request #21517 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Conversation

thomasjpfan
Copy link
Member
@thomasjpfan thomasjpfan commented Oct 31, 2021

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.

@thomasjpfan thomasjpfan marked this pull request as draft October 31, 2021 19:19
@thomasjpfan thomasjpfan marked this pull request as ready for review November 1, 2021 15:29
Copy link
Member Author
@thomasjpfan thomasjpfan left a 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)
Copy link
Member Author

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.

@thomasjpfan thomasjpfan added this to the 1.0.2 milestone Nov 1, 2021
@thomasjpfan thomasjpfan changed the title CI Ignore disutils warning in scipy-dev [scipy-dev] FIX Ignore disutils warning in scipy-dev [scipy-dev] Nov 1, 2021
@ogrisel ogrisel added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label Nov 4, 2021
@ogrisel ogrisel changed the title FIX Ignore disutils warning in scipy-dev [scipy-dev] FIX Ignore distutils warning in scipy-dev [scipy-dev] Nov 4, 2021
Copy link
Member
@ogrisel ogrisel left a 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.

@ogrisel
Copy link
Member
ogrisel commented Nov 4, 2021

Yeah!

= 21792 passed, 915 skipped, 62 xfailed, 39 xpassed, 3107 warnings in 968.75s (0:16:08) =

@ogrisel ogrisel merged commit 60cf98b into scikit-learn:main Nov 4, 2021
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Nov 29, 2021
…in OneHotEncoder (scikit-learn#21517)

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
…in OneHotEncoder (scikit-learn#21517)

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
…in OneHotEncoder (scikit-learn#21517)

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
glemaitre pushed a commit that referenced this pull request Dec 25, 2021
…in OneHotEncoder (#21517)

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build / CI module:preprocessing To backport PR merged in master that need a backport to a release branch defined based on the milestone.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0