It would be great if clearer warnings and guidelines could be offered on how to use custom metrics from yardstick with tuneparallel_over option? Personally, it took quite a while to figure out that the error message:
! no applicable method for 'mse' applied to an object of class "c('grouped_df', 'tbl_df', 'tbl', 'data.fram..
despite the script itself containing a mse <- function(data, ...) { UseMethod("mse")} call?
tune: emit a warning if parallel is used with custom metrics?
in general: provide guidelines on how to handle the problem? The solution in https://github.com/tidymodels/tune/issues/479 to write a specific package just for the function seems quite heavy?
It would be great if clearer warnings and guidelines could be offered on how to use custom metrics from
yardstick
withtune
parallel_over
option? Personally, it took quite a while to figure out that the error message:despite the script itself containing a
mse <- function(data, ...) { UseMethod("mse")}
call?What I am suggesting is:
Thanks!