-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PUBDEV-8024: Allow to use user given fold column where not all folds are represented #5345
Conversation
fa80a9f
to
f2728d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found this mapping/inverseMapping logic a bit confusing as it seems to make sense only in one use-case (user defined, non-sequential folds).
Couldn't we produce the correct mapping in one shot?
4176580
to
237172b
Compare
@seb please take another look, I simplify it so that for "internal" fold there is no mapping created I am also using TransformWrappedVec to avoid propagating the mapping to the outside world |
237172b
to
74ebad5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
74ebad5
to
4cb1c1f
Compare
4cb1c1f
to
6b76456
Compare
@sebhrusen thank you for the review and for pushing me in the right direction, I think it is now cleaner and it doesn't leak the implementation details outside of FoldAssignment |
We changed the way cv folds are assigned in #5345 This affects fold specification that doesn't start from 0, eg. 1, 2, 3 Old way was to use modulo operator resulting in effective fold assignment: 1, 2, 0 New way is to respect the fold order, resulting in fold assignment 0, 1, 2
We changed the way cv folds are assigned in h2oai#5345 This affects fold specification that doesn't start from 0, eg. 1, 2, 3 Old way was to use modulo operator resulting in effective fold assignment: 1, 2, 0 New way is to respect the fold order, resulting in fold assignment 0, 1, 2 (cherry picked from commit 8d5cc98)
No description provided.