Inner split of the analysis set for fitting a post-processor
Usage
inner_split(x, ...)
# S3 method for class 'mc_split'
inner_split(x, split_args, ...)
# S3 method for class 'group_mc_split'
inner_split(x, split_args, ...)
# S3 method for class 'vfold_split'
inner_split(x, split_args, ...)
# S3 method for class 'group_vfold_split'
inner_split(x, split_args, ...)
# S3 method for class 'boot_split'
inner_split(x, split_args, ...)
# S3 method for class 'group_boot_split'
inner_split(x, split_args, ...)
# S3 method for class 'val_split'
inner_split(x, split_args, ...)
# S3 method for class 'group_val_split'
inner_split(x, split_args, ...)
# S3 method for class 'time_val_split'
inner_split(x, split_args, ...)
# S3 method for class 'clustering_split'
inner_split(x, split_args, ...)
# S3 method for class 'apparent_split'
inner_split(x, ...)
Details
rsplit
objects live most commonly inside of an rset
object. The
split_args
argument can be the output of .get_split_args()
on that
corresponding rset
object, even if some of the arguments used to create the
rset
object are not needed for the inner split.
For
mc_split
andgroup_mc_split
objects,inner_split()
will ignoresplit_args$times
.For
vfold_split
andgroup_vfold_split
objects, it will ignoresplit_args$times
andsplit_args$repeats
.split_args$v
will be used to setsplit_args$prop
to1 - 1/v
ifprop
is not already set and otherwise ignored. The method forgroup_vfold_split
will always usesplit_args$balance = NULL
.For
boot_split
andgroup_boot_split
objects, it will ignoresplit_args$times
.For
val_split
,group_val_split
, andtime_val_split
objects, it will interpret a length-2split_args$prop
as a ratio between the training and validation sets and split into inner analysis and inner assessment set in the same ratio. Ifsplit_args$prop
is a single value, it will be used as the proportion of the inner analysis set.For
clustering_split
objects, it will ignoresplit_args$repeats
.