report error if cross validation doesn't have at least two samples