HTEFold | R Documentation |
R6 class to represent partitions of the data between training and held-out
R6 class to represent partitions of the data between training and held-out
This takes a set of folds calculated elsewhere and represents these folds in a consistent format.
train
A dataframe containing only the training set
holdout
A dataframe containing only the held-out data
in_holdout
A logical vector indicating if the initial data lies in the holdout set.
new()
Creates an R6 object of the data split between training and test set.
HTEFold$new(data, split_id)
data
The dataset to be split
split_id
An identifier indicating which data should lie in the holdout set.
Returns an object of class HTEFold
clone()
The objects of this class are cloneable with this method.
HTEFold$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.