New subclasses and inner_split() methods for validation sets - #489
Merged
Conversation
inner_split() methods for validation setsinner_split() methods for validation sets
simonpcouch
approved these changes
May 24, 2024
simonpcouch
left a comment
Contributor
There was a problem hiding this comment.
yup yup yup yup
I'm happy to add a method for
val_time_splitto support the usage of the deprecatedvalidation_time_split()if we think it's necessary.
I'd say we not do so. :)
Co-authored-by: Simon P. Couch <simonpatrickcouch@gmail.com>
Contributor
|
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds
inner_split()methods for thersets coming fromvalidation_set(). Thosersetscan result from thegroupandtimevariants ofinitial_validation_split().To be able to tell where they are coming from, this PR also adds subclasses for the
groupandtimevariant to the output ofvalidation_set(): thersetobjects and thersplitobjects within thosersets.I'm looking for a second opinion on the naming of the
rsplitsubclasses for thetimevariant.The interfaces and the original (and deprecated) approach via
validation_split()put thetimeneither as a prefix nor a suffix but rather inside the more general name:initial_time_split(),initial_validation_time_split(),validation_time_split(), andval_time_split.I don't think we are going to touch the naming of the interfaces but we could touch the naming convention for the
rsplitclass. I've broken with that particular pattern of placingtimeand instead aligned with the pattern forgroup, i.e., used it as a prefix. Could be good, could be bad, could actually not matter much.The only place I think it'll matter is here and I'm happy to add a method for
val_time_splitto support the usage of the deprecatedvalidation_time_split()if we think it's necessary.Edit: this search suggests that we don't dispatch on that class elsewhere so it should only matter here.