Skip to content
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

Use array interface for testing numpy arrays. #9602

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

trivialfis
Copy link
Member

No description provided.

@@ -165,7 +165,7 @@ def _is_scipy_coo(data: DataType) -> bool:


def _is_numpy_array(data: DataType) -> bool:
Copy link

Choose a reason for hiding this comment

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

Perhaps now a more appropriate name for this is _is_numpy_array_like?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for the suggestion, renamed.

@trivialfis trivialfis merged commit a90d204 into dmlc:master Sep 22, 2023
26 checks passed
@trivialfis trivialfis deleted the replace-np-array-interface branch September 22, 2023 19:13
@trivialfis trivialfis added this to In progress in Fix 2.0 via automation Oct 8, 2023
@trivialfis trivialfis moved this from In progress to Done in Fix 2.0 Oct 8, 2023
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Oct 8, 2023
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Oct 8, 2023
@trivialfis trivialfis moved this from Done to Backported in Fix 2.0 Oct 12, 2023
@trivialfis trivialfis mentioned this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Fix 2.0
Backported
Development

Successfully merging this pull request may close these issues.

None yet

3 participants