| compute_metrics | R Documentation |
Compute prediction accuracy metrics for results from tune_imp().
compute_metrics(results, metrics = c("mae", "rmse"))
## S3 method for class 'data.frame'
compute_metrics(results, metrics = c("mae", "rmse"))
## S3 method for class 'slideimp_tune'
compute_metrics(results, metrics = c("mae", "rmse"))
results |
A |
metrics |
Character vector of metric names to compute. Defaults to
|
A data frame containing the original parameter columns along with
unnested metric columns: .metric, .estimator, and .estimate.
set.seed(1234)
obj <- sim_mat(20, 30)$input
results <- tune_imp(
obj = obj,
parameters = data.frame(k = 5),
.f = "knn_imp",
n_reps = 1,
num_na = 10,
.progress = FALSE
)
compute_metrics(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.