Skip to content

Commit 985c9be

Browse files
authored
Fix type hint train_test_split (#7736)
Update arrow_dataset.py
1 parent 6419629 commit 985c9be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datasets/arrow_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)