File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4647,13 +4647,13 @@ def train_test_split(
46474647 This method is similar to scikit-learn `train_test_split`.
46484648
46494649 Args:
4650- test_size (`numpy.random.Generator `, *optional*):
4650+ test_size (`Union[float, int, None] `, *optional*):
46514651 Size of the test split
46524652 If `float`, should be between `0.0` and `1.0` and represent the proportion of the dataset to include in the test split.
46534653 If `int`, represents the absolute number of test samples.
46544654 If `None`, the value is set to the complement of the train size.
46554655 If `train_size` is also `None`, it will be set to `0.25`.
4656- train_size (`numpy.random.Generator `, *optional*):
4656+ train_size (`Union[float, int, None] `, *optional*):
46574657 Size of the train split
46584658 If `float`, should be between `0.0` and `1.0` and represent the proportion of the dataset to include in the train split.
46594659 If `int`, represents the absolute number of train samples.
You can’t perform that action at this time.
0 commit comments