Jun-19-2017, 06:31 PM
Sorry for late reply, there was misplaced
)
, it should be:skip_size = len(next(tscv.split(X))[0])tcsv.split(X) returns generator object; calling next on it returns tuple of arrays containing indices of first train and test split. We want size of first train split, so
[0]
is used to extract train split.