| compute_metrics | R Documentation |
Computes 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 |
A character vector of metric names to compute. Defaults
to |
For alternative or faster metrics, see the {yardstick} package.
A data.frame with the original parameters along with
unnested metrics: .metric, .estimator, and .estimate.
obj <- sim_mat(100, 100)$input
set.seed(1234)
results <- tune_imp(
obj = obj,
parameters = data.frame(k = 10),
.f = "knn_imp",
n_reps = 1,
num_na = 20
)
compute_metrics(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.