Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
getResamplingIndices(): Translate inner resampling indices to outer indices #2413
So they match the task indices.
The test I added uses a basic "CV" with predefined indices (
The implementation is ofc hard to review since it uses three nested
The test essentially checks that in the inner inds have values that go up to the max index value of the task (in this case 150). Before, the max of inner inds was "obs - (obs/nfolds)", which evaluates to 120 in this test with 150 obs.
Can only be merged after #2412 since it uses code from this PR.
As a side not: I moved
The type safetyness of