PredictorCaret {fmeffects}R Documentation

PredictorCaret

Description

This task specializes Predictor for caret regression models. The model is assumed to be a c("train", "train.formula").

It is recommended to use makePredictor() for construction of Predictor objects.

Super class

fmeffects::Predictor -> PredictorCaret

Methods

Public methods


Method new()

Create a new PredictorCaret object.

Usage
PredictorCaret$new(model, data, target)
Arguments
model

⁠train, train.formula⁠ object.

data

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

target

A string specifying the target variable.


Method predict()

Predicts on an observation "newdata".

Usage
PredictorCaret$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
PredictorCaret$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


[Package fmeffects version 0.1.2 Index]