Skip to content

Commit

Permalink
add default config for nested cv
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Jul 22, 2024
1 parent 008e623 commit 8160e3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions R/ResamplingNestedCV.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#' This implements the Nested CV resampling procedure by Bates et al. (2024).
#' @section Parameters:
#' * `folds` :: `integer(1)`\cr
#' The number of folds.
#' The number of folds. This is initialized to `5`.
#' * `repeats` :: `integer(1)`\cr
#' The number of repetitions.
#' The number of repetitions. THis is initialized to `10`.
#' @export
#' @references
#' `r format_bib("bates2024cross")`
Expand All @@ -21,8 +21,8 @@ ResamplingNestedCV = R6::R6Class("ResamplingNestedCV",
#' Creates a new instance of this [R6][R6::R6Class] class.
initialize = function() {
param_set = ps(
folds = p_int(lower = 3L, tags = "required"),
repeats = p_int(lower = 1L, tags = "required")
folds = p_int(lower = 3L, tags = "required", init = 5L),
repeats = p_int(lower = 1L, tags = "required", init = 10L)
)

super$initialize(id = "nested_cv", param_set = param_set,
Expand Down
4 changes: 2 additions & 2 deletions man/mlr_resamplings_ncv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8160e3d

Please sign in to comment.