# Not good def _check_input_parameters(self, X, y, groups): --- snip --- # see https://github.com/scikit-learn/scikit-learn/issues/15149 if not _yields_constant_splits(self._checked_cv_orig): raise ValueError( "The cv parameter must yield consistent folds across " "calls to split(). Set its random_state to an int, or " " set shuffle=False." ) --- snip ---