predict_model | R Documentation |
Generic function to predict outcomes from a fitted model object using new data.
predict_model(object, fit, newdata, ...)
object |
A fitted model object for which a prediction method is defined. |
fit |
The fitted model object, often returned by 'train_model'. (Note: For some models, 'object' itself might be the fit). |
newdata |
New data (e.g., a matrix or data frame) for which to make predictions. The structure should be compatible with what the model was trained on. |
... |
Additional arguments passed to specific prediction methods. |
Predictions whose structure depends on the specific method (e.g., a vector, matrix, or data frame).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.