HTEFold {tidyhte} | R Documentation |
R6 class to represent partitions of the data between training and held-out
Description
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
Details
This takes a set of folds calculated elsewhere and represents these folds in a consistent format.
Public fields
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.
Methods
Public methods
Method new()
Creates an R6 object of the data split between training and test set.
Usage
HTEFold$new(data, split_id)
Arguments
data
The dataset to be split
split_id
An identifier indicating which data should lie in the holdout set.
Returns
Returns an object of class HTEFold
Method clone()
The objects of this class are cloneable with this method.
Usage
HTEFold$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
[Package tidyhte version 1.0.2 Index]