Skip to content

repeats attribute is hardcoded to 1 for group_vfold_cv() #607

Description

@twest822

The problem

There's a typo at vfold.R:318:

repeats = 1,

rather than setting repeats = repeats as is done for forming vfold_cv()'s attribute list at vfold.R:128.

Workaround in user code's just to update the attribute to the correct value

crossValidationFolds = group_vfold_cv(..., repeats = repeatCount)
attr(crossValidationFolds, "repeats", exact = TRUE) = repeatCount

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions