Generate manual rset object from spatiotemporal cross-validation indices
Source:R/base_learner.R
convert_cv_index_rset.RdGenerate manual rset object from spatiotemporal cross-validation indices
Arguments
- cvindex
One of:
integer row indices for
id_outin arsetobject.List of integer row indices stored in elements named
analysisandassessment.
- data
data.frame object from which the
cvindexis used to creatersetobject- ref_list
List of custom reference group indices. Default is
attr(cvindex, "ref_list"), where it is assumed thatcvindexcontains anlistattribute 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.