library(tidymodels)
val_split <- initial_validation_split(mtcars)
val_set <- validation_set(val_split)
pretty(val_set)
#> [1] "Validation Set (0.75/0.25)"
val_set_old <- validation_split(mtcars)
#> Warning: `validation_split()` was deprecated in rsample 1.2.0.
#> ℹ Please use `initial_validation_split()` instead.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
pretty(val_set_old)
#> [1] "Validation Set Split (0.75/0.25) "
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
to close #456
Created on 2024-01-10 with reprex v2.0.2