Sketch crossvalidate function (not working yet)