tidymodels / rsample

Classes and functions to create and summarize resampling objects
https://rsample.tidymodels.org
Other
341 stars 66 forks source link

adding pretty method to validation_set() #463

Closed EmilHvitfeldt closed 10 months ago

EmilHvitfeldt commented 10 months ago

to close #456

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) "

Created on 2024-01-10 with reprex v2.0.2

github-actions[bot] commented 10 months ago

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.