-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warning on array creation from ragged sequences (#4801)
Avoid conversion of ragged nested sequences to numpy array. Use simple equality check to compare lists of tuples. Use RandomState.choice to get item index instead of the item itself which implies conversion to numpy.array. Fixes check/pytest -Werror:'Creating an ndarray from ragged'
- Loading branch information
1 parent
09a4667
commit 3d90501
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters