Slicing the index won't work if it is a boolean index. Although these (i.e. `indices=False`) are being deprecated for cross validation generators, it might be better to support them: do the slice after indexing in `X` and `y`.