The class used to encapsulates all the computed predictions to facilitate their access and maintenance.
new()
Method for initializing the object arguments during runtime.
PredictionOutput$new(predictions, type, target)
predictions
A list of FinalPred
elements.
type
A character to define which type of predictions should be returned. If not defined all type of probabilities will be returned. Conversely if "prob" or "raw" is defined then computed 'probabilistic' or 'class' values are returned.
target
A character defining the value of the positive class.
getPredictions()
The function returns the final predictions.
PredictionOutput$getPredictions()
A list containing the final predictions or NULL if classification stage was not successfully performed.
getType()
The function returns the type of prediction should be returned. If "prob" or "raw" is defined then computed 'probabilistic' or 'class' values are returned.
PredictionOutput$getType()
A character value.
getTarget()
The function returns the value of the target class.
PredictionOutput$getTarget()
A character value.
clone()
The objects of this class are cloneable with this method.
PredictionOutput$clone(deep = FALSE)
deep
Whether to make a deep clone.
D2MCS