tests/testthat/_snaps/num-pseudo_huber_loss.md

Pseudo-Huber Loss

Code
  huber_loss_pseudo(ex_dat, truth = "obs", estimate = "pred_na", delta = -1)
Condition
  Error in `huber_loss_pseudo()`:
  ! `delta` must be a number larger than or equal to 0, not the number -1.
Code
  huber_loss_pseudo(ex_dat, truth = "obs", estimate = "pred_na", delta = c(1, 2))
Condition
  Error in `huber_loss_pseudo()`:
  ! `delta` must be a number, not a double vector.


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.