Skip to contents

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.

Super class

fmeffects::Predictor -> PredictorMLR3

Methods


Method new()

Create a new PredictorMLR3 object.

Usage

PredictorMLR3$new(model, data)

Arguments

model

LearnerRegr or LearnerClassif object.

data

The data used for computing FMEs, must be data.frame or data.table.


Method predict()

Predicts on an observation "newdata".

Usage

PredictorMLR3$predict(newdata)

Arguments

newdata

The feature vector for which the target should be predicted.


Method clone()

The objects of this class are cloneable with this method.

Usage

PredictorMLR3$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.