split_test_train | R Documentation |
It makes sure that there is at least one representative of each class in the test test
split_test_train(yclass, split_prop)
yclass |
any vector with Y labels |
split_prop |
proportion of test samples |
indices of train test splits
y <- c(1,1,1,1,2,2,2,2,2,2,2,3,3) split_test_train(y,0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.