'Returns the number of splitting iterations in the cross-validator
Parameters
X : object
Always ignored, exists for compatibility.
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=None, y=None, groups=None):

    return len(self.cv)
