'Returns the number of splitting iterations in the cross-validator
Parameters
X : array-like, shape (n_samples, n_features)
Training data, where n_samples is the number of samples
and n_features is the number of features.
y : object
Always ignored, exists for compatibility.
groups : object
Always ignored, exists for compatibility.
Returns
n_splits : int
Returns the number of splitting iterations in the cross-validator.'

def get_n_splits(self, X, y=None, groups=None):

    if (X is None):
        raise ValueError("The    'X'    parameter    should    not    be    None.")
    return _num_samples(X)
