| get_train_test_split | R Documentation |
This function divides a given set of conditions into training and testing sets. The division is based on a provided vector of indices, which specify the conditions to be used for testing.
get_train_test_split(test_inds, conds)
test_inds |
A numeric vector of indices indicating which elements in
|
conds |
A list of conditions (e.g. |
A list with two elements: train and test. Each element is a list
of conditions, where train includes the conditions not indexed by
test_inds, and test includes the conditions indexed by test_inds.
split <- get_train_test_split(c(1, 3), xsl_datasets[1:5])
length(split$train)
length(split$test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.