powered by
This function uses the out-of-bag predictions to calculate overall performance metrics and returns the observed and predicted data.
resampleSummary(obs, resampled, index = NULL, keepData = TRUE)
A vector (numeric or factor) of the outcome data
For bootstrapping, this is either a matrix (for numeric outcomes) or a data frame (for factors). For cross-validation, a vector is produced.
The list to index of samples in each cross-validation fold (only used for cross-validation).
A logical for returning the observed and predicted data.
A list with:
A vector of values describing the bootstrap distribution.
A data frame or NULL. Columns include obs, pred and group (for tracking cross-validation folds or bootstrap samples)
NULL
obs
pred
group
The mean and standard deviation of the values produced by postResample are calculated.
postResample
# NOT RUN { resampleSummary(rnorm(10), matrix(rnorm(50), ncol = 5)) # }
Run the code above in your browser using DataLab