implement crossvalidation on training sets on resource-specific subsamples