Enforce n_folds >= 2 for k-fold cross-validation
Merge pull request #2054 from ogrisel/invalid-n-folds

ENH Enforce n_folds >= 2 for k-fold cross-validation