flair.data.randomly_split_into_two_datasets#
- flair.data.randomly_split_into_two_datasets(dataset, length_of_first, random_seed=None)View on GitHub#
Shuffles a dataset and splits into two subsets.
The length of the first is specified and the remaining samples go into the second subset.
- Return type:
tuple
[Subset
,Subset
]