Description
Usage
Arguments
Value
View source: R/fit_SuperLearner_funs.R
Generic SuperLearner prediction function
| (modelfit, newdata, add_subject_data = ,
subset_idx = , best_only = , holdout = ,
force_data.table = , verbose = ("gridisl.verbose"))
|
modelfit |
Model fit object returned by fit functions. Must be an object of class PredictionModel or PredictionStack .
|
newdata |
Subject-specific data for which predictions should be obtained.
|
add_subject_data |
Set to TRUE to add the subject-level data to the resulting predictions (returned as a data.table).
When FALSE (default) only the actual predictions are returned (as a matrix with each column representing predictions from a specific model).
|
subset_idx |
A vector of row indices in newdata for which the predictions should be obtain.
Default is NULL in which case all observations in newdata will be used for prediction.
|
best_only |
Set to TRUE (default) to obtain predictions from the top-ranked model (based on validation or CV MSE).
When FALSE the attempt will to made to obtain predictions from all models.
Note that when holdout is FALSE and best_only is TRUE ,
the predictions will be based on the best scoring model that was re-trained on all available data.
|
holdout |
Set to TRUE for out-of-sample predictions for validation folds or holdouts.
|
force_data.table |
Force the prediction result to be data.table .
|
verbose |
Set to TRUE to print messages on status and information to the console.
Turn this on by default using options(gridisl.verbose=TRUE) .
|
A data.table of subject level predictions (subject are rows, columns are different models)
or a data.table with subject level covariates added along with model-based predictions.
osofr/gridisl documentation built on May 24, 2019, 4:55 p.m.