predictLearner: Predict new data with an R learner.

Description Usage Arguments Details Value

View source: R/predictLearner.R

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

1
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


guillermozbta/s2 documentation built on May 17, 2019, 4:01 p.m.