Skip to content

Conversation

Vincent-Maladiere
Copy link
Contributor

Reference Issues/PRs

Towards #24875

What does this implement/fix? Explain your changes.

  • Replace cnp.ndarray by memoryviews
  • Return np.ndarray through .base for outputs
  • Replace the check isinstance(key, cnp.ndarray) with _is_arraylike

Any other comments?

cc @jjerphan

Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo a green CI.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @Vincent-Maladiere

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a nitpick: we tend to prefer np.asarray(x) instead of x.base

@jeremiedbb jeremiedbb merged commit f9b16f2 into scikit-learn:main Nov 24, 2022
@jeremiedbb
Copy link
Member

Thanks @Vincent-Maladiere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants