Sketch crossvalidate function