Split arrays or matrices in train and test subsets

split_train_test(dataset, train_size = 0.8, random_seed = 1234)

Arguments

dataset

Array, matrix with information to split

train_size

Proportion of the x to split as train subset. By default the value is 0.8

random_seed

An integer to control the random number generator used. By default the value is 1234

Value

A list with train and test subsets

Author

Catherine Rincon, catherine.rincon@udea.edu.co