Useful data grouping for crossvalidation