modeva.DataSet.set_random_split#
- DataSet.set_random_split(test_ratio: float = 0.2, shuffle: bool = True, random_state: int = 0)#
Set random train-test split on active samples.
- Parameters:
test_ratio (float, default=0.2) – The percentage of test samples.
shuffle (bool, default=True) – Whether to shuffle data before splitting.
random_state (int, default=0) – The seed for controlling randomness.