Prediction {D2MCS} | R Documentation |
Manages the prediction computed for a specific model.
Description
Allows to obtain predictions from the data provided using a pre-trained model.
Methods
Public methods
Method new()
Method for initializing the object arguments during runtime.
Usage
Prediction$new(model, feature.id = NULL)
Arguments
Method execute()
Calculates predictions of the values passed by parameters using the corresponding model.
Usage
Prediction$execute(pred.values, class.values, positive.class)
Arguments
pred.values
A data.frame containing the values to predict.
class.values
A vector containing the class values.
positive.class
A character value containing the positive class.
Method getPrediction()
The function is used to return the prediction values computed.
Usage
Prediction$getPrediction(type = NULL, target = NULL)
Arguments
Returns
A data.frame with the computed prediction.
Method getModelName()
Gets the model name.
Usage
Prediction$getModelName()
Returns
The character value of model value.
Method getModelPerformance()
Gets the performance of the model.
Usage
Prediction$getModelPerformance()
Returns
The numeric value of the model's performance.
Method clone()
The objects of this class are cloneable with this method.
Usage
Prediction$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
[Package D2MCS version 1.0.1 Index]