-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FutureWarnings from numpy and torch (#921)
- don't use torch.testing.assert_allclose, use assert_close instead - don't use np.bool, use bool instead Note that np.dtype('bool') == bool, so replace np.bool by bool should just work. - Adjust test that used ragged numpy array Numpy used to allow creation of ragged arrays, e.g. np.array([[1], [2, 2], [3, 3, 3]]) This does not work anymore with newer numpy versions (tested on 1.24.0rc2). To make it work, dtype=object has to be passed explicitly. This does not any skorch code directly, but it was necessary to fix a test.
- Loading branch information
1 parent
5a19171
commit bd53b6e
Showing
5 changed files
with
10 additions
and
9 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
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
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