Skip to content

Commit

Permalink
Update vfold.R
Browse files Browse the repository at this point in the history
bug correction with vfold_splits function
forward on breaks value from the vfold_cv function to vfold_splits
  • Loading branch information
ZWael authored Apr 12, 2024
1 parent 030cd48 commit 77350d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/vfold.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ vfold_cv <- function(data, v = 10, repeats = 1,
)
}
for (i in 1:repeats) {
tmp <- vfold_splits(data = data, v = v, strata = strata, pool = pool)
tmp <- vfold_splits(data = data, v = v, strata = strata, breaks = breaks ,pool = pool)
tmp$id2 <- tmp$id
tmp$id <- names0(repeats, "Repeat")[i]
split_objs <- if (i == 1) {
Expand Down

0 comments on commit 77350d5

Please sign in to comment.