Description Usage Arguments Details Value
This function is just a wrapper over the predict function. It sets different default parameters for models from different classes. For example: for classification random Forest is forces the output to be probabilities not classes itself.
1 2 3 4 5 6 7 8 9 10 |
X.model |
object - a model to be explained |
newdata |
data.frame or matrix - observations for prediction |
... |
other parameters that will be passed to the 'predict' function |
We use the 'yhat' name instead of 'predict' since we need different defaults that the one set in the 'predict' function.
An numeric matrix of predictions. Can have more than one collumn.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.