Predictor | R Documentation |
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.
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.
new()
Create a Predictor object
Predictor$new(...)
...
Predictor cannot be initialized, only its subclasses
clone()
The objects of this class are cloneable with this method.
Predictor$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.