Target {fuseMLR} | R Documentation |
Target Class
Description
This class implements the target object. A Target object can only exist as a component of a Training object.
Super class
fuseMLR::Data
-> Target
Methods
Public methods
Inherited methods
Method new()
Initialize a new object from the current class.
Usage
Target$new(id, data_frame, training)
Arguments
id
character
The Object ID.data_frame
data.frame
data.frame
containing data.training
Training
Training where to store the current object.
Method print()
Printer
Usage
Target$print(...)
Arguments
...
any
Method summary()
Summary
Usage
Target$summary(...)
Arguments
...
any
Method getData()
Getter of the current data.frame
wihtout individual
ID nor target variables.
Usage
Target$getData()
Returns
The data.frame
without individual ID nor target variables is returned.
Method getTargetValues()
Getter of target values stored on the current training layer.
Usage
Target$getTargetValues()
Returns
The observed target values stored on the current training layer are returned.
Method getTargetName()
Getter of the target variable name.
Usage
Target$getTargetName()
Method getTraining()
Getter of the current training object.
Usage
Target$getTraining()
Returns
The training layer (from class Training) on which the current train data are stored is returned.
Method setData()
Getter of the current data.frame
wihtout individual
ID nor target variables.
Usage
Target$setData(data_frame)
Arguments
data_frame
data.frame
data.frame to be set.Title
Method clone()
The objects of this class are cloneable with this method.
Usage
Target$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
TrainLayer, Lrner, Model, TestData