set_training_split
- set_training_split(x: Panel, y: Panel, train_size: float | int = 0.7, val_size: float | int = 0.2, test_size: float | int = 0.1) None [source]
Splits panel in training, validation, and test.
- Parameters
train_size (
float
orint
) – Fraction of data to use for training.test_size (
float
orint
) – Fraction of data to use for testing.val_size (
float
orint
) – Fraction of data to use for validation.
Example:
>>> x, y = set_training_split(x, y, train_size=0.8, val_size=0.2, test_size=0.1)