workflows icon indicating copy to clipboard operation
workflows copied to clipboard

`make_inner_split()` errors for some `add_tailor(method)` values

Open simonpcouch opened this issue 1 year ago • 1 comments

When the rsample function called internally by inner_split() methods doesn't have a prop argument, that function errors. e.g. with method = "boot_split":

library(tidymodels)
library(tailor)

tlr <-
  tailor() %>%
  adjust_numeric_calibration() %>%
  adjust_numeric_range(lower_limit = 1)

wflow <-
  workflow() %>%
  add_formula(mpg ~ .) %>%
  add_model(parsnip::linear_reg()) %>%
  add_tailor(tlr, method = "boot_split")

fit(wflow, mtcars)
#> Error in `bootstraps()`:
#> ! `...` must be empty.
#> ✖ Problematic argument:
#> • prop = 0.666666666666667

Created on 2024-09-20 with reprex v2.1.1

simonpcouch avatar Sep 20 '24 19:09 simonpcouch