Two metrics, provided only so that tune_carryover() has a working default
(rmse()) and a one-line simple case. Any function of (actual, predicted)
returning a single number will do, so use yardstick if you want a real
metric library.
Value
A single number. NA_real_ if no finite pairs remain. Empty input,
input of different lengths and non-numeric input are errors. rmse()
scales the errors before squaring them, so errors near the limits of
double precision neither overflow nor vanish.
See also
tune_carryover(), which takes any such function as metric_fn.