Skip to content

New subclasses and inner_split() methods for validation sets - #489

Merged
hfrick merged 8 commits into
mainfrom
inner_split-validation-set
May 24, 2024
Merged

New subclasses and inner_split() methods for validation sets#489
hfrick merged 8 commits into
mainfrom
inner_split-validation-set

Conversation

@hfrick

@hfrick hfrick commented May 23, 2024

Copy link
Copy Markdown
Member

This PR adds inner_split() methods for the rsets coming from validation_set(). Those rsets can result from the group and time variants of initial_validation_split().

To be able to tell where they are coming from, this PR also adds subclasses for the group and time variant to the output of validation_set(): the rset objects and the rsplit objects within those rsets.

I'm looking for a second opinion on the naming of the rsplit subclasses for the time variant.

The interfaces and the original (and deprecated) approach via validation_split() put the time neither as a prefix nor a suffix but rather inside the more general name: initial_time_split(), initial_validation_time_split(), validation_time_split(), and val_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 rsplit class. I've broken with that particular pattern of placing time and instead aligned with the pattern for group, 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_split to support the usage of the deprecated validation_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.

@hfrick hfrick changed the title inner_split() methods for validation sets New subclasses and inner_split() methods for validation sets May 23, 2024
@hfrick
hfrick requested a review from simonpcouch May 24, 2024 13:07

@simonpcouch simonpcouch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup yup yup yup

I'm happy to add a method for val_time_split to support the usage of the deprecated validation_time_split() if we think it's necessary.

I'd say we not do so. :)

Comment thread R/inner_split.R
Comment thread R/inner_split.R Outdated
Comment thread R/misc.R
Comment thread R/inner_split.R
Comment thread R/inner_split.R
hfrick and others added 3 commits May 24, 2024 15:43
@hfrick
hfrick merged commit 3d8b275 into main May 24, 2024
@hfrick
hfrick deleted the inner_split-validation-set branch May 24, 2024 15:44
@github-actions

github-actions Bot commented Jun 8, 2024

Copy link
Copy Markdown
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.

@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants