-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
Description
It would be great if clearer warnings and guidelines could be offered on how to use custom metrics from yardstick with tune parallel_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?
What I am suggesting is:
- yardstick documentation at https://www.tidymodels.org/learn/develop/metrics/: mention the problem?
- tune: emit a warning if parallel is used with custom metrics?
- in general: provide guidelines on how to handle the problem? The solution in Custom metrics don't seem to work with parallel processing tune#479 to write a specific package just for the function seems quite heavy?
Thanks!
Reactions are currently unavailable