Description Usage Arguments Value Examples
Returns the predicted probability value and the actual outcome
1 | test_predict(fit)
|
fit |
A caret model |
A 'tibble' with two variables 1. The probability of the event and 2. the actual, observed outcome
1 2 3 4 | data(pedis)
X_y <- prepare_X_y(pedis, outcome = "minor_amputation", var = c("p", "d"))
fit <- train_pedis(X = X_y$X, y = X_y$y)
test_predict(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.