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, where each condition is represented as a separate element. |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.