Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

* The lag argument for `initial_time_split()` has been soft deprecated (@bjornkallerud, #592).

* The example for `group_vfold_cv()` has been updated to use current dplyr functions (#597).


# rsample 1.3.1

* The new `internal_calibration_split()` function and its methods for various resamples is for usage in tune to create a internal split of the analysis set to fit the preprocessor and model on one part and the post-processor on the other part (#483, #488, #489, #569, #575, #577, #582).
Expand Down
8 changes: 5 additions & 3 deletions R/vfold.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ vfold_cv <- function(

## Save some overall information

if (!is.null(strata)) names(strata) <- NULL
if (!is.null(strata)) {
names(strata) <- NULL
}
cv_att <- list(
v = v,
repeats = repeats,
Expand Down Expand Up @@ -230,8 +232,8 @@ vfold_splits <- function(
#' city_strata <- Sacramento |>
#' group_by(city) |>
#' summarize(strata = mean(price)) |>
#' summarize(city = city,
#' strata = cut(strata, quantile(strata), include.lowest = TRUE))
#' reframe(city = city,
#' strata = cut(strata, quantile(strata), include.lowest = TRUE))
#'
#' sacramento_data <- Sacramento |>
#' full_join(city_strata, by = "city")
Expand Down
4 changes: 2 additions & 2 deletions man/group_vfold_cv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.