PredictData {fuseMLR} | R Documentation |
PredictData Class
Description
This class implements PredictData object to be predicted. A PredictData object can only exist as a component of a PredictLayer or a PredictMetaLayer object.
Super class
fuseMLR::Data
-> PredictData
Methods
Public methods
Inherited methods
Method new()
Initialize a new object from the current class.
Usage
PredictData$new(id, ind_col, data_frame)
Arguments
id
character
Object ID.ind_col
character
Column name containing individual IDs.data_frame
data.frame
data.frame
containing data.
Method print()
Printer
Usage
PredictData$print(...)
Arguments
...
any
Method getPredictData()
Getter of the current predicted data.frame
wihtout individual
ID variable.
Usage
PredictData$getPredictData()
Returns
The data.frame
without individual ID nor target variables is returned.
Method getPredictLayer()
Getter of the current layer.
Usage
PredictData$getPredictLayer()
Returns
The layer (from class PredictLayer) on which the current train data are stored is returned.
Method setPredictLayer()
Assigns a predicted layer to the predicted data.
Usage
PredictData$setPredictLayer(predict_layer)
Arguments
predict_layer
PredictLayer(1)
Returns
The current object
Method clone()
The objects of this class are cloneable with this method.
Usage
PredictData$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.