Commit 89b5b8e
authored
Allow to pass callables as outer CV (#90)
Passing an unsized iterable (such as a generator) as an outer CV does not work if the experiment has several datasets/estimators. as in that case the iterable is exhausted in the first iteration, raising
`StopIteration` for the following datasets/estimators.
We can instead allow to pass a callable that returns a fresh instance of the iterable for each combination.
Note: the type hints and documentation have not been updated for now.1 parent 148ee53 commit 89b5b8e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
0 commit comments