(self, X, y=None, groups=None)
| 215 | """ |
| 216 | |
| 217 | def _iter_test_indices(self, X, y=None, groups=None): |
| 218 | n_samples = _num_samples(X) |
| 219 | if n_samples <= 1: |
| 220 | raise ValueError( |
| 221 | "Cannot perform LeaveOneOut with n_samples={}.".format(n_samples) |
| 222 | ) |
| 223 | return range(n_samples) |
| 224 | |
| 225 | def get_n_splits(self, X, y=None, groups=None): |
| 226 | """Returns the number of splitting iterations in the cross-validator. |
nothing calls this directly
no test coverage detected