Generate manual rset object from spatiotemporal cross-validation indices
Source:R/base_learner.R
convert_cv_index_rset.Rd
Generate manual rset object from spatiotemporal cross-validation indices
Arguments
- cvindex
One of:
integer row indices for
id_out
in arset
object.List of integer row indices stored in elements named
analysis
andassessment
.
- data
data.frame object from which the
cvindex
is used to createrset
object- ref_list
List of custom reference group indices. Default is
attr(cvindex, "ref_list")
, where it is assumed thatcvindex
contains anlist
attribute named "ref_list". if not NULL, it will be used as a reference instead of max(cvindex).- cv_mode
character(1). Spatiotemporal cross-validation indexing method label.