-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a TypeError that occurred when using predefined_split
This bug was introduced by PR 646 after a change in the function signature of utils._make_split. Here the bug is fixed by returning to the old signature but giving default values for valid_ds and y, so that the desired behavior introduced by 646 is still possible. A test is introduced to catch this bug. As a cleanup, the unrelated test_predefined_split now uses the already defined dataset_cls fixture instead of importing Dataset again.
- Loading branch information
1 parent
807974c
commit ae2b4ac
Showing
2 changed files
with
24 additions
and
5 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