View source: R/predict_flashlight.R
predict.flashlight | R Documentation |
Predict method for an object of class "flashlight".
Pass additional elements to update the flashlight, typically data
.
## S3 method for class 'flashlight'
predict(object, ...)
object |
An object of class "flashlight". |
... |
Arguments used to update the flashlight. |
A vector with predictions.
fit <- lm(Sepal.Length ~ ., data = iris)
fl <- flashlight(model = fit, data = iris, y = "Sepal.Length", label = "ols")
predict(fl)[1:5]
predict(fl, data = iris[1:5, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.