From 8160e3d597fea1c7917d3be9f9fc8dcfa33c82f3 Mon Sep 17 00:00:00 2001 From: Sebastian Fischer Date: Mon, 22 Jul 2024 16:10:15 +0200 Subject: [PATCH] add default config for nested cv --- R/ResamplingNestedCV.R | 8 ++++---- man/mlr_resamplings_ncv.Rd | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/ResamplingNestedCV.R b/R/ResamplingNestedCV.R index a6ad37a..6d044d2 100644 --- a/R/ResamplingNestedCV.R +++ b/R/ResamplingNestedCV.R @@ -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")` @@ -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, diff --git a/man/mlr_resamplings_ncv.Rd b/man/mlr_resamplings_ncv.Rd index 9e11c00..9c0005f 100644 --- a/man/mlr_resamplings_ncv.Rd +++ b/man/mlr_resamplings_ncv.Rd @@ -11,9 +11,9 @@ This implements the Nested CV resampling procedure by Bates et al. (2024). \itemize{ \item \code{folds} :: \code{integer(1)}\cr -The number of folds. +The number of folds. This is initialized to \code{5}. \item \code{repeats} :: \code{integer(1)}\cr -The number of repetitions. +The number of repetitions. THis is initialized to \code{10}. } }