rsample 1.1.1
-
All grouped resampling functions (
group_vfold_cv()
,group_mc_cv()
,group_initial_split()
andgroup_validation_split()
, andgroup_bootstraps()
) now support stratification. Strata must be constant within each group (@mikemahoney218, #317, #360, #363, #364, #365). -
Added a new function,
clustering_cv()
, for blocked cross-validation in various predictor spaces. This is a very flexible function, taking arguments to bothdistance_function
andcluster_function
, allowing it to be used for spatial clustering as well as potentially phylogenetic and other forms of clustering (@mikemahoney218, #351). -
bootstraps()
andgroup_bootstraps()
now warn if resampling returns any empty assessment sets. Previously,bootstraps()
was silent whilegroup_bootstraps()
errored (@mikemahoney218, #356, #357). -
The assessment set of
validation_time_split()
now also contains the lagged observations (#376). -
The new helper
get_rsplit()
lets you conveniently access thersplit
objects inside anrset
objects (@mikemahoney218, #399). -
The result of
initial_time_split()
now has its own subclass"initial_time_split"
, in addition to existing classes (#397). -
The dependency on the ellipsis package has been removed (#393).
-
Removed an overly strict test in preparation for dplyr 1.1.0 (#380).