Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inner_split(): better labels #490

Open
topepo opened this issue May 23, 2024 · 0 comments
Open

inner_split(): better labels #490

topepo opened this issue May 23, 2024 · 0 comments

Comments

@topepo
Copy link
Member

topepo commented May 23, 2024

Right now the middle data are labeled as "Assess":

library(tidymodels)

set.seed(19)
ad_v_fold <- vfold_cv(ad_data, v = 5, strata = Class)
ad_v_fold_attr <- attributes(ad_v_fold)[ c("v", "repeats", "strata", "breaks", "pool")]

v_fold_inner <- inner_split(ad_v_fold$splits[[1]], ad_v_fold_attr)
v_fold_inner
#> <Analysis/Assess/Total>
#> <211/54/265>

class(v_fold_inner)
#> [1] "vfold_split_inner" "vfold_split"       "rsplit"

Created on 2024-05-23 with reprex v2.0.2

That should say the current placeholder: "potato".

This also makes me think that me think that we should have a global "inner_split" class to have better methods for this class of objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant