predict | R Documentation |
Fits the model or ensemble of models to the data and shows the result.
predict(object, ...)
## S4 method for signature 'familiarModel'
predict(
object,
newdata,
type = "default",
time = NULL,
dir_path = NULL,
ensemble_method = "median",
stratification_threshold = NULL,
stratification_method = NULL,
percentiles = NULL,
...
)
## S4 method for signature 'familiarEnsemble'
predict(
object,
newdata,
type = "default",
time = NULL,
dir_path = NULL,
ensemble_method = "median",
stratification_threshold = NULL,
stratification_method = NULL,
percentiles = NULL,
...
)
## S4 method for signature 'familiarNoveltyDetector'
predict(object, newdata, type = "novelty", ...)
## S4 method for signature 'list'
predict(
object,
newdata,
type = "default",
time = NULL,
dir_path = NULL,
ensemble_method = "median",
stratification_threshold = NULL,
stratification_method = NULL,
percentiles = NULL,
...
)
## S4 method for signature 'character'
predict(
object,
newdata,
type = "default",
time = NULL,
dir_path = NULL,
ensemble_method = "median",
stratification_threshold = NULL,
stratification_method = NULL,
percentiles = NULL,
...
)
object |
A familiar model or ensemble of models that should be used for prediction. This can also be a path to the ensemble model, one or more paths to models, or a list of models. |
... |
to be documented. |
newdata |
Data to which the models are fitted. |
type |
Type of prediction made. The following values are directly supported:
Other values for type are passed to the fitting method of the actual
underlying model. For example for generalised linear models ( |
time |
Time at which the response ( |
dir_path |
Path to the folder containing the models. Ensemble objects
are stored with the models detached. In case the models were moved since
creation, |
ensemble_method |
Method for ensembling predictions from models for the same sample. Available methods are:
|
stratification_threshold |
Threshold value(s) used for stratifying
instances into risk groups. If this parameter is specified,
|
stratification_method |
Selects the stratification method from which the
threshold values should be selected. If the model or ensemble of models
does not contain thresholds for the indicated method, an error is returned.
In addition this argument is ignored if a |
percentiles |
Currently unused. |
This method is used to predict values for instances specified by the
newdata
using the model or ensemble of models specified by the object
argument.
A data.table
with predicted values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.