Leave-region-out, on a grouping that already exists (biome, catchment, ...).
Source:R/api.R
region_cv.RdLeave-region-out, on a grouping that already exists (biome, catchment, ...).
Arguments
- group
Group labels, one per row of
meta.- k
Number of folds; defaults to one per group.
- test_frac
Share held out as the test set, drawn first.
- seed
Seed for this split only; the training seeds do not move it.
- calibration_frac
Share of ALL the points held out as a calibration set for the intervals, carved after the test set by the same criterion; 0 for none. It trains nothing and chooses nothing: dsm_final() predicts it and calibrates its "split" interval there.
Examples
ex <- example_landscape()
region_cv(group = ex$profiles$survey)
#> <resample_spec> region
#> group <160 values>
#> k NULL
#> test_frac 0.15
#> seed 42
#> calibration_frac 0