TrainData | R Documentation |
This class implements the training data. A TrainData object can only exist as a component of a TrainLayer or a TrainMetaLayer object.
fuseMLR::Data
-> TrainData
new()
Initialize a new object from the current class.
TrainData$new(id, data_frame, train_layer)
id
character
The Object ID.
data_frame
data.frame
data.frame
containing data.
train_layer
TrainLayer
Training layer where to store the current object.
print()
Printer
TrainData$print(...)
...
any
summary()
Summary
TrainData$summary(...)
...
any
getData()
Getter of the current data.frame
wihtout individual
ID nor target variables.
TrainData$getData()
The data.frame
without individual ID nor target variables is returned.
getTargetValues()
Getter of target values stored on the current training layer.
TrainData$getTargetValues()
The observed target values stored on the current training layer are returned.
getTargetName()
Getter of the target variable name.
TrainData$getTargetName()
getTrainLayer()
Getter of the current training layer.
TrainData$getTrainLayer()
The training layer (from class TrainLayer) on which the current train data are stored is returned.
getTestLayer()
Getter of the current layer.
TrainData$getTestLayer()
The layer (from class TestLayer) on which the current train data are stored is returned.
setDataFrame()
Set a new data.frame
to the current object.
TrainData$setDataFrame(data_frame)
data_frame
data.frame
The current object is returned.
clone()
The objects of this class are cloneable with this method.
TrainData$clone(deep = FALSE)
deep
Whether to make a deep clone.
TrainLayer, Lrner, Model, TestData
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.