Target | R Documentation |
This class implements the target object. A Target object can only exist as a component of a Training object.
fuseMLR::Data
-> Target
new()
Initialize a new object from the current class.
Target$new(id, data_frame, training)
id
character
The Object ID.
data_frame
data.frame
data.frame
containing data.
training
Training
Training where to store the current object.
print()
Printer
Target$print(...)
...
any
summary()
Summary
Target$summary(...)
...
any
getData()
Getter of the current data.frame
wihtout individual
ID nor target variables.
Target$getData()
The data.frame
without individual ID nor target variables is returned.
getTargetValues()
Getter of target values stored on the current training layer.
Target$getTargetValues()
The observed target values stored on the current training layer are returned.
getTargetName()
Getter of the target variable name.
Target$getTargetName()
getTraining()
Getter of the current training object.
Target$getTraining()
The training layer (from class Training) on which the current train data are stored is returned.
setData()
Getter of the current data.frame
wihtout individual
ID nor target variables.
Target$setData(data_frame)
data_frame
data.frame
data.frame to be set.
Title
clone()
The objects of this class are cloneable with this method.
Target$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.