This function convertsf olds that subset ids to folds that subset observations

id_folds_to_folds(idfolds, cluster_ids)

Arguments

idfolds

folds that subset ids

cluster_ids

a vector of cluster ids indicating which observations are in which clusters