FIX backport old scikit-learn validation code

scikit-learn master breaks seqlearn because the validation API was
changed.