tests/testthat/_snaps/deprecated-template.md

metric_summarizer() is soft-deprecated

Code
  tmp <- metric_summarizer(metric_nm = "rmse", metric_fn = rmse_vec, data = mtcars,
    truth = mpg, estimate = disp, na_rm = TRUE, case_weights = NULL)
Condition
  Warning:
  `metric_summarizer()` was deprecated in yardstick 1.2.0.
  i Please use `numeric_metric_summarizer()`, `class_metric_summarizer()`, `prob_metric_summarizer()`, or `curve_metric_summarizer()` instead.

metric_summarizer()'s errors when wrong things are passes

Code
  metric_summarizer(metric_nm = "rmse", metric_fn = rmse_vec, data = mtcars,
    truth = not_a_real_column_name, estimate = disp)
Condition
  Error in `dplyr::summarise()`:
  i In argument: `.estimator = eval_tidy(finalize_estimator_expr)`.
  Caused by error:
  ! object 'not_a_real_column_name' not found
Code
  metric_summarizer(metric_nm = "rmse", metric_fn = rmse_vec, data = mtcars,
    truth = mpg, estimate = not_a_real_column_name)
Condition
  Error in `dplyr::summarise()`:
  i In argument: `.estimate = metric_fn(truth = mpg, estimate = not_a_real_column_name, na_rm = na_rm)`.
  Caused by error:
  ! object 'not_a_real_column_name' not found


Try the yardstick package in your browser

Any scripts or data that you put into this service are public.

yardstick documentation built on June 22, 2024, 7:07 p.m.