PredictorMLR3 | R Documentation |
This task specializes Predictor for mlr3
models.
The model
is assumed to be a LearnerRegr
or LearnerClassif
.
It is recommended to use makePredictor()
for construction of Predictor objects.
fmeffects::Predictor
-> PredictorMLR3
new()
Create a new PredictorMLR3 object.
PredictorMLR3$new(model, data)
model
LearnerRegr
or LearnerClassif
object.
data
The data used for computing FMEs, must be data.frame or data.table.
predict()
Predicts on an observation "newdata"
.
PredictorMLR3$predict(newdata)
newdata
The feature vector for which the target should be predicted.
clone()
The objects of this class are cloneable with this method.
PredictorMLR3$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.