| predict-basemodel | R Documentation |
Predict method for kindling basemodel fits
## S3 method for class 'ffnn_fit'
predict(object, newdata = NULL, new_data = NULL, type = "response", ...)
## S3 method for class 'rnn_fit'
predict(object, newdata = NULL, new_data = NULL, type = "response", ...)
object |
An object of class |
newdata |
Data frame. New data for predictions. If |
new_data |
Alternative to newdata (for consistency with hardhat). |
type |
Character. Type of prediction:
|
... |
Currently unused. |
For regression models: a numeric vector (single output) or matrix (multiple outputs) of predicted values.
For classification models:
type = "response": a factor vector of predicted class labels
type = "prob": a numeric matrix of class probabilities, with columns
named after the class levels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.