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(
4647
4647
This method is similar to scikit-learn `train_test_split`.
4648
4648
4649
4649
Args:
4650
- test_size (`numpy.random.Generator `, *optional*):
4650
+ test_size (`Union[float, int, None] `, *optional*):
4651
4651
Size of the test split
4652
4652
If `float`, should be between `0.0` and `1.0` and represent the proportion of the dataset to include in the test split.
4653
4653
If `int`, represents the absolute number of test samples.
4654
4654
If `None`, the value is set to the complement of the train size.
4655
4655
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*):
4657
4657
Size of the train split
4658
4658
If `float`, should be between `0.0` and `1.0` and represent the proportion of the dataset to include in the train split.
4659
4659
If `int`, represents the absolute number of train samples.
You can’t perform that action at this time.
0 commit comments