tidymodels / yardstick

Tidy methods for measuring model performance
https://yardstick.tidymodels.org/
Other
368 stars 54 forks source link

Guidelines on using custom metrics with tune parallel_over? #514

Open MatthieuStigler opened 1 month ago

MatthieuStigler commented 1 month ago

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:

Thanks!