| predict.superlearner | R Documentation |
Obtains predictions for ensemble model or individual learners.
## S3 method for class 'superlearner'
predict(object, newdata, all.learners = FALSE, ...)
object |
(superlearner) Fitted superlearner object. |
newdata |
(data.frame) Data in which to look for variables with which to predict. |
all.learners |
(logical) If FALSE (default), then return the predictions from the ensemble model. Otherwise, return predictions of from all individual learners. |
... |
Not used. |
numeric (all.learners = FALSE) or matrix (all.learners = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.