| Predictor {fmeffects} | R Documentation |
R6 Class representing a predictor
Description
This is the abstract superclass for predictor objects like PredictorMLR3 and PredictorCaret. A Predictor contains information about an ML model's prediction function and training data.
Public fields
modelThe (trained) model, with the ability to predict on new data.
targetA character vector with the name of the target variable.
XA data.table with feature and target variables.
feature.namesA character vector with the names of the features in X.
feature.typesA character vector with the types (numerical or categorical) of the features in X.
Methods
Public methods
Method new()
Create a Predictor object
Usage
Predictor$new(...)
Arguments
...Predictor cannot be initialized, only its subclasses
Method clone()
The objects of this class are cloneable with this method.
Usage
Predictor$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
[Package fmeffects version 0.1.3 Index]