Skip to contents

This function will extract the metrics from the hai_auto_ boilerplate functions.

Usage

hai_auto_wflw_metrics(.data)

Arguments

.data

The output of the hai_auto_ boilerplate function in it's entirety.

Value

A tibble

Details

This function will extract the metrics from the hai_auto_ boilerplate functions. This function looks for a specific attribute from the hai_auto_ functions so that it will extract the tuned_results from the tuning process if it has indeed been tuned.

Author

Steven P. Sanderson II, MPH

Examples

if (FALSE) {
data <- iris

rec_obj <- hai_knn_data_prepper(data, Species ~ .)

auto_knn <- hai_auto_knn(
  .data = data,
  .rec_obj = rec_obj,
  .best_metric = "f_meas",
  .model_type = "classification",
  .grid_size = 2,
  .num_cores = 4
)

hai_auto_wflw_metrics(auto_knn)
}