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
model
The (trained) model, with the ability to predict on new data.
target
A character vector with the name of the target variable.
X
A data.table with feature and target variables.
feature.names
A character vector with the names of the features in X.
feature.types
A 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
deep
Whether to make a deep clone.
[Package fmeffects version 0.1.3 Index]