predictLearner {mlr}R Documentation

Predict new data with an R learner.

Description

Mainly for internal use. Predict new data with a fitted model. You have to implement this method if you want to add another learner to this package.

Usage

predictLearner(.learner, .model, .newdata, ...)

Arguments

.learner

(RLearner)
Wrapped learner.

.model

(WrappedModel)
Model produced by training.

.newdata

(data.frame)
New data to predict. Does not include target column.

...

(any)
Additional parameters, which need to be passed to the underlying predict function.

Details

Your implementation must adhere to the following: Predictions for the observations in .newdata must be made based on the fitted model (.model$learner.model). All parameters in ... must be passed to the underlying predict function.

Value


[Package mlr version 2.19.1 Index]