'Generate indices to split data into training and test set.
Parameters
X : object
Always ignored, exists for compatibility.
y : object
Always ignored, exists for compatibility.
groups : object
Always ignored, exists for compatibility.
Returns
train : ndarray
The training set indices for that split.
test : ndarray
The testing set indices for that split.'

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

    for (train, test) in self.cv:
        (yield (train, test))
