| PredictorParsnip {fmeffects} | R Documentation |
PredictorParsnip
Description
This task specializes Predictor for parsnip models.
The model is assumed to be a model_fit object.
It is recommended to use makePredictor() for construction of Predictor objects.
Super class
fmeffects::Predictor -> PredictorParsnip
Methods
Public methods
Method new()
Create a new PredictorParsnip object.
Usage
PredictorParsnip$new(model, data)
Arguments
modelmodel_fitobject.dataThe data used for computing FMEs, must be data.frame or data.table.
Method predict()
Predicts on an observation "newdata".
Usage
PredictorParsnip$predict(newdata)
Arguments
newdataThe feature vector for which the target should be predicted.
Method clone()
The objects of this class are cloneable with this method.
Usage
PredictorParsnip$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
[Package fmeffects version 0.1.3 Index]