Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX Add more validation for size parameters in train_test_split (#12733)
* Fixed typo in an example * Removed un-needed lines from example * Added tests on the validity of parameters * Fixed error msg for train_size issue * Added tests to check the validation of test and train sizes * Switched to parameterized test * Fixed typo in error msg * Swithced to pytest.raises * Swithced to pytest.raises also when checking msg * Improved the validity tests and their unit testing
- Loading branch information
1 parent
2aa9022
commit 440c086
Showing
2 changed files
with
66 additions
and
25 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