diff --git a/.github/workflows/r-cmd-check-old-paradox-new-other.yml b/.github/workflows/r-cmd-check-old-paradox-new-other.yml new file mode 100644 index 00000000..a3af55ff --- /dev/null +++ b/.github/workflows/r-cmd-check-old-paradox-new-other.yml @@ -0,0 +1,46 @@ +# r cmd check workflow of the mlr3 ecosystem v0.1.0 +# https://github.com/mlr-org/actions +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + branches: + - main + +name: r-cmd-check-paradox + +jobs: + r-cmd-check: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + + strategy: + fail-fast: false + matrix: + config: + - {os: ubuntu-latest, r: 'devel'} + - {os: ubuntu-latest, r: 'release'} + + steps: + - uses: actions/checkout@v3 + + - name: paradox + run: 'echo -e "Remotes:\n mlr-org/mlr3spatial,\n mlr-org/mlr3pipelines,\n mlr-org/bbotk,\n mlr-org/mlr3tuning" >> DESCRIPTION' + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: ${{ matrix.config.r }} + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check + - uses: r-lib/actions/check-r-package@v2 diff --git a/.github/workflows/r-cmd-check-paradox.yml b/.github/workflows/r-cmd-check-paradox.yml new file mode 100644 index 00000000..3441e519 --- /dev/null +++ b/.github/workflows/r-cmd-check-paradox.yml @@ -0,0 +1,46 @@ +# r cmd check workflow of the mlr3 ecosystem v0.1.0 +# https://github.com/mlr-org/actions +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + branches: + - main + +name: r-cmd-check-paradox + +jobs: + r-cmd-check: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + + strategy: + fail-fast: false + matrix: + config: + - {os: ubuntu-latest, r: 'devel'} + - {os: ubuntu-latest, r: 'release'} + + steps: + - uses: actions/checkout@v3 + + - name: paradox + run: 'echo -e "Remotes:\n mlr-org/paradox,\n mlr-org/mlr3spatial,\n mlr-org/mlr3pipelines,\n mlr-org/bbotk,\n mlr-org/mlr3tuning" >> DESCRIPTION' + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: ${{ matrix.config.r }} + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check + - uses: r-lib/actions/check-r-package@v2 diff --git a/R/ResamplingRepeatedSpCVBlock.R b/R/ResamplingRepeatedSpCVBlock.R index ace8e201..bb756a60 100644 --- a/R/ResamplingRepeatedSpCVBlock.R +++ b/R/ResamplingRepeatedSpCVBlock.R @@ -54,26 +54,26 @@ ResamplingRepeatedSpCVBlock = R6Class("ResamplingRepeatedSpCVBlock", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "repeated_spcv_block") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required"), - ParamInt$new("repeats", lower = 1, default = 1L, tags = "required"), - ParamInt$new("rows", lower = 1L), - ParamInt$new("cols", lower = 1L), - ParamInt$new("seed"), - ParamLgl$new("hexagon", default = FALSE), - ParamUty$new("range", - custom_check = function(x) checkmate::assert_integer(x)), - ParamFct$new("selection", levels = c( + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + repeats = p_int(lower = 1, tags = "required"), + rows = p_int(lower = 1L), + cols = p_int(lower = 1L), + seed = p_int(), + hexagon = p_lgl(default = FALSE), + range = p_uty( + custom_check = checkmate::check_integer), + selection = p_fct(levels = c( "random", "systematic", "checkerboard"), default = "random"), - ParamUty$new("rasterLayer", + rasterLayer = p_uty( default = NULL, - custom_check = function(x) { + custom_check = crate(function(x) { checkmate::check_class(x, "SpatRaster", null.ok = TRUE) - } + }) ) - )) + ) ps$values = list(folds = 10L, repeats = 1L) super$initialize( diff --git a/R/ResamplingRepeatedSpCVCoords.R b/R/ResamplingRepeatedSpCVCoords.R index 76c8aa62..bf66e6d2 100644 --- a/R/ResamplingRepeatedSpCVCoords.R +++ b/R/ResamplingRepeatedSpCVCoords.R @@ -42,10 +42,10 @@ ResamplingRepeatedSpCVCoords = R6Class("ResamplingRepeatedSpCVCoords", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "repeated_spcv_coords") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required"), - ParamInt$new("repeats", lower = 1, default = 1L, tags = "required") - )) + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + repeats = p_int(lower = 1, tags = "required") + ) ps$values = list(folds = 10L, repeats = 1) super$initialize( id = id, diff --git a/R/ResamplingRepeatedSpCVDisc.R b/R/ResamplingRepeatedSpCVDisc.R index aa090d37..9fe40a2c 100644 --- a/R/ResamplingRepeatedSpCVDisc.R +++ b/R/ResamplingRepeatedSpCVDisc.R @@ -43,19 +43,19 @@ ResamplingRepeatedSpCVDisc = R6Class("ResamplingRepeatedSpCVDisc", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "repeated_spcv_disc") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required"), - ParamInt$new("radius", + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + radius = p_int( lower = 0L, tags = "required", special_vals = list(0L)), - ParamInt$new("buffer", + buffer = p_int( lower = 0L, default = NULL, special_vals = list(NULL)), - ParamUty$new("prob", + prob = p_uty( default = NULL), - ParamLgl$new("replace", default = FALSE), - ParamInt$new("repeats", lower = 1, default = 1L, tags = "required") - )) + replace = p_lgl(default = FALSE), + repeats = p_int(lower = 1, tags = "required") + ) ps$values = list(folds = 10L, repeats = 1) super$initialize( id = id, diff --git a/R/ResamplingRepeatedSpCVEnv.R b/R/ResamplingRepeatedSpCVEnv.R index ac8aed43..c6e7182d 100644 --- a/R/ResamplingRepeatedSpCVEnv.R +++ b/R/ResamplingRepeatedSpCVEnv.R @@ -41,11 +41,11 @@ ResamplingRepeatedSpCVEnv = R6Class("ResamplingRepeatedSpCVEnv", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "repeated_spcv_env") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required"), - ParamInt$new("repeats", lower = 1, default = 10L, tags = "required"), - ParamUty$new("features") - )) + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + repeats = p_int(lower = 1, tags = "required"), + features = p_uty() + ) ps$values = list(folds = 10L, repeats = 1) super$initialize( id = id, diff --git a/R/ResamplingRepeatedSpCVTiles.R b/R/ResamplingRepeatedSpCVTiles.R index 535c528c..a8614e8e 100644 --- a/R/ResamplingRepeatedSpCVTiles.R +++ b/R/ResamplingRepeatedSpCVTiles.R @@ -47,19 +47,19 @@ ResamplingRepeatedSpCVTiles = R6Class("ResamplingRepeatedSpCVTiles", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "repeated_spcv_tiles") { - ps = ParamSet$new(params = list( - ParamUty$new("dsplit", custom_check = function(x) checkmate::assert_integer(x, len = 2)), - ParamUty$new("nsplit", custom_check = function(x) checkmate::assert_integer(x, len = 2)), - ParamFct$new("rotation", levels = c("none", "random", "user"), default = "none"), - ParamUty$new("user_rotation", default = NULL), - ParamFct$new("offset", levels = c("none", "random", "user"), default = "none"), - ParamUty$new("user_offset", default = NULL), - ParamLgl$new("reassign", default = TRUE), - ParamDbl$new("min_frac", default = 0.025, lower = 0, upper = 1), - ParamInt$new("min_n", default = 5, lower = 0), - ParamInt$new("iterate", default = 1, lower = 1), - ParamInt$new("repeats", lower = 1, default = 1L, tags = "required") - )) + ps = ps( + dsplit = p_uty(custom_check = crate(function(x) checkmate::check_integer(x, len = 2))), + nsplit = p_uty(custom_check = crate(function(x) checkmate::check_integer(x, len = 2))), + rotation = p_fct(levels = c("none", "random", "user"), default = "none"), + user_rotation = p_uty(default = NULL), + offset = p_fct(levels = c("none", "random", "user"), default = "none"), + user_offset = p_uty(default = NULL), + reassign = p_lgl(default = TRUE), + min_frac = p_dbl(default = 0.025, lower = 0, upper = 1), + min_n = p_int(default = 5, lower = 0), + iterate = p_int(default = 1, lower = 1), + repeats = p_int(lower = 1, tags = "required") + ) ps$values = list(repeats = 1) super$initialize( id = id, diff --git a/R/ResamplingRepeatedSpCVknndm.R b/R/ResamplingRepeatedSpCVknndm.R index 032efdb4..2be39d99 100644 --- a/R/ResamplingRepeatedSpCVknndm.R +++ b/R/ResamplingRepeatedSpCVknndm.R @@ -45,29 +45,29 @@ ResamplingRepeatedSpCVKnndm = R6Class("ResamplingRepeatedSpCVKnndm", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "repeated_spcv_knndm") { - ps = ParamSet$new(params = list( - ParamUty$new("modeldomain", default = NULL, - custom_check = function(x) { + ps = ps( + modeldomain = p_uty(default = NULL, + custom_check = crate(function(x) { checkmate::check_class(x, "SpatRaster", null.ok = TRUE) - } + }) ), - ParamUty$new("predpoints", default = NULL, - custom_check = function(x) { + predpoints = p_uty(default = NULL, + custom_check = crate(function(x) { checkmate::check_class(x, "sfc_POINT", null.ok = TRUE) - } + }) ), - ParamFct$new("space", levels = "geographical", default = "geographical"), - ParamInt$new("folds", default = 10, lower = 2), - ParamDbl$new("maxp", default = 0.5, lower = 0, upper = 1), - ParamFct$new("clustering", default = "hierarchical", - levels = c("hierarchical", "kmeans"), tags = "required"), - ParamUty$new("linkf", default = "ward.D2"), - ParamInt$new("samplesize"), - ParamFct$new("sampling", levels = c("random", "hexagonal", "regular", "Fibonacci")), - ParamInt$new("repeats", lower = 1, default = 1L, tags = "required") - )) + space = p_fct(levels = "geographical", default = "geographical"), + folds = p_int(default = 10, lower = 2), + maxp = p_dbl(default = 0.5, lower = 0, upper = 1), + clustering = p_fct(default = "hierarchical", + levels = c("hierarchical", "kmeans")), + linkf = p_uty(default = "ward.D2"), + samplesize = p_int(), + sampling = p_fct(levels = c("random", "hexagonal", "regular", "Fibonacci")), + repeats = p_int(lower = 1, tags = "required") + ) ps$values = list(repeats = 1, folds = 10) super$initialize( diff --git a/R/ResamplingRepeatedSptCVCstf.R b/R/ResamplingRepeatedSptCVCstf.R index c7481a9c..e2dcd134 100644 --- a/R/ResamplingRepeatedSptCVCstf.R +++ b/R/ResamplingRepeatedSptCVCstf.R @@ -41,11 +41,11 @@ ResamplingRepeatedSptCVCstf = R6Class("ResamplingRepeatedSptCVCstf", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "repeated_sptcv_cstf") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 3L, tags = "required"), - ParamInt$new("repeats", lower = 1, default = 10L, tags = "required"), - ParamLgl$new("stratify", default = FALSE) - )) + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + repeats = p_int(lower = 1, tags = "required"), + stratify = p_lgl(default = FALSE) + ) ps$values = list(folds = 3L, repeats = 10L, stratify = FALSE) super$initialize( diff --git a/R/ResamplingSpCVBlock.R b/R/ResamplingSpCVBlock.R index fccb1b71..05977510 100644 --- a/R/ResamplingSpCVBlock.R +++ b/R/ResamplingSpCVBlock.R @@ -44,24 +44,24 @@ ResamplingSpCVBlock = R6Class("ResamplingSpCVBlock", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "spcv_block") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required"), - ParamInt$new("rows", lower = 1L), - ParamInt$new("cols", lower = 1L), - ParamInt$new("range"), - ParamInt$new("seed"), - ParamLgl$new("hexagon", default = FALSE), - ParamFct$new("selection", levels = c( + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + rows = p_int(lower = 1L), + cols = p_int(lower = 1L), + range = p_int(), + seed = p_int(), + hexagon = p_lgl(default = FALSE), + selection = p_fct(levels = c( "random", "systematic", "checkerboard"), default = "random"), - ParamUty$new("rasterLayer", + rasterLayer = p_uty( default = NULL, - custom_check = function(x) { + custom_check = crate(function(x) { checkmate::check_class(x, "SpatRaster", null.ok = TRUE) - } + }) ) - )) + ) ps$values = list(folds = 10L) super$initialize( id = id, diff --git a/R/ResamplingSpCVBuffer.R b/R/ResamplingSpCVBuffer.R index 989a3328..d28b1aed 100644 --- a/R/ResamplingSpCVBuffer.R +++ b/R/ResamplingSpCVBuffer.R @@ -38,11 +38,11 @@ ResamplingSpCVBuffer = R6Class("ResamplingSpCVBuffer", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "spcv_buffer") { - ps = ParamSet$new(params = list( - ParamInt$new("theRange", lower = 1L, tags = "required"), - ParamFct$new("spDataType", default = "PA", levels = c("PA", "PB")), - ParamLgl$new("addBG", default = TRUE) - )) + ps = ps( + theRange = p_int(lower = 1L, tags = "required"), + spDataType = p_fct(default = "PA", levels = c("PA", "PB")), + addBG = p_lgl(default = TRUE) + ) super$initialize( id = id, diff --git a/R/ResamplingSpCVCoords.R b/R/ResamplingSpCVCoords.R index 88b567f1..acf115c7 100644 --- a/R/ResamplingSpCVCoords.R +++ b/R/ResamplingSpCVCoords.R @@ -34,9 +34,9 @@ ResamplingSpCVCoords = R6Class("ResamplingSpCVCoords", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "spcv_coords") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required") - )) + ps = ps( + folds = p_int(lower = 1L, tags = "required") + ) ps$values = list(folds = 10L) super$initialize( id = id, diff --git a/R/ResamplingSpCVDisc.R b/R/ResamplingSpCVDisc.R index 0f353da7..64e372f9 100644 --- a/R/ResamplingSpCVDisc.R +++ b/R/ResamplingSpCVDisc.R @@ -35,18 +35,18 @@ ResamplingSpCVDisc = R6Class("ResamplingSpCVDisc", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "spcv_disc") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required"), - ParamInt$new("radius", + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + radius = p_int( lower = 0L, tags = "required", special_vals = list(0L)), - ParamInt$new("buffer", + buffer = p_int( lower = 0L, default = NULL, special_vals = list(NULL)), - ParamUty$new("prob", + prob = p_uty( default = NULL), - ParamLgl$new("replace", default = FALSE) - )) + replace = p_lgl(default = FALSE) + ) ps$values = list(folds = 10L) super$initialize( id = id, diff --git a/R/ResamplingSpCVEnv.R b/R/ResamplingSpCVEnv.R index ac550d4f..0055b12e 100644 --- a/R/ResamplingSpCVEnv.R +++ b/R/ResamplingSpCVEnv.R @@ -38,10 +38,10 @@ ResamplingSpCVEnv = R6Class("ResamplingSpCVEnv", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "spcv_env") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 10L, tags = "required"), - ParamUty$new("features") - )) + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + features = p_uty() + ) ps$values = list(folds = 10L) super$initialize( id = id, diff --git a/R/ResamplingSpCVKnndm.R b/R/ResamplingSpCVKnndm.R index 1754b2b0..d232ac98 100644 --- a/R/ResamplingSpCVKnndm.R +++ b/R/ResamplingSpCVKnndm.R @@ -39,29 +39,29 @@ ResamplingSpCVKnndm = R6Class("ResamplingSpCVKnndm", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "spcv_knndm") { - ps = ParamSet$new(params = list( - ParamUty$new("modeldomain", default = NULL, - custom_check = function(x) { + ps = ps( + modeldomain = p_uty(default = NULL, + custom_check = crate(function(x) { checkmate::check_class(x, "sfc_POLYGON", null.ok = TRUE) - } + }) ), - ParamUty$new("predpoints", default = NULL, - custom_check = function(x) { + predpoints = p_uty(default = NULL, + custom_check = crate(function(x) { checkmate::check_class(x, "sfc_POINT", null.ok = TRUE) - } + }) ), - ParamFct$new("space", levels = "geographical", default = "geographical"), - ParamInt$new("folds", default = 10, lower = 2), - ParamDbl$new("maxp", default = 0.5, lower = 0, upper = 1), - ParamFct$new("clustering", default = "hierarchical", - levels = c("hierarchical", "kmeans"), tags = "required"), - ParamUty$new("linkf", default = "ward.D2"), - ParamInt$new("samplesize", default = 1000), - ParamFct$new("sampling", levels = c("random", "hexagonal", "regular", "Fibonacci"), + space = p_fct(levels = "geographical", default = "geographical"), + folds = p_int(default = 10, lower = 2), + maxp = p_dbl(default = 0.5, lower = 0, upper = 1), + clustering = p_fct(default = "hierarchical", + levels = c("hierarchical", "kmeans")), + linkf = p_uty(default = "ward.D2"), + samplesize = p_int(default = 1000), + sampling = p_fct(levels = c("random", "hexagonal", "regular", "Fibonacci"), default = "regular") - )) + ) ps$values = list(folds = 10L) super$initialize( diff --git a/R/ResamplingSpCVTiles.R b/R/ResamplingSpCVTiles.R index 77a2e152..2bcda069 100644 --- a/R/ResamplingSpCVTiles.R +++ b/R/ResamplingSpCVTiles.R @@ -35,18 +35,18 @@ ResamplingSpCVTiles = R6Class("ResamplingSpCVTiles", #' For a list of available arguments, please see #' [sperrorest::partition_tiles]. initialize = function(id = "spcv_tiles") { - ps = ParamSet$new(params = list( - ParamUty$new("dsplit", custom_check = function(x) checkmate::assert_integer(x, len = 2)), - ParamUty$new("nsplit", custom_check = function(x) checkmate::assert_integer(x, len = 2)), - ParamFct$new("rotation", levels = c("none", "random", "user"), default = "none"), - ParamUty$new("user_rotation", default = NULL), - ParamFct$new("offset", levels = c("none", "random", "user"), default = "none"), - ParamUty$new("user_offset", default = NULL), - ParamLgl$new("reassign", default = TRUE), - ParamDbl$new("min_frac", default = 0.025, lower = 0, upper = 1), - ParamInt$new("min_n", default = 5, lower = 0), - ParamInt$new("iterate", default = 1, lower = 1) - )) + ps = ps( + dsplit = p_uty(custom_check = crate(function(x) checkmate::check_integer(x, len = 2))), + nsplit = p_uty(custom_check = crate(function(x) checkmate::check_integer(x, len = 2))), + rotation = p_fct(levels = c("none", "random", "user"), default = "none"), + user_rotation = p_uty(default = NULL), + offset = p_fct(levels = c("none", "random", "user"), default = "none"), + user_offset = p_uty(default = NULL), + reassign = p_lgl(default = TRUE), + min_frac = p_dbl(default = 0.025, lower = 0, upper = 1), + min_n = p_int(default = 5, lower = 0), + iterate = p_int(default = 1, lower = 1) + ) super$initialize( id = id, param_set = ps, diff --git a/R/ResamplingSptCVCstf.R b/R/ResamplingSptCVCstf.R index 61ca3114..c2a49dfb 100644 --- a/R/ResamplingSptCVCstf.R +++ b/R/ResamplingSptCVCstf.R @@ -36,10 +36,10 @@ ResamplingSptCVCstf = R6Class("ResamplingSptCVCstf", #' @param id `character(1)`\cr #' Identifier for the resampling strategy. initialize = function(id = "sptcv_cstf") { - ps = ParamSet$new(params = list( - ParamInt$new("folds", lower = 1L, default = 3L, tags = "required"), - ParamLgl$new("stratify", default = FALSE) - )) + ps = ps( + folds = p_int(lower = 1L, tags = "required"), + stratify = p_lgl(default = FALSE) + ) ps$values = list(folds = 3L, stratify = FALSE) super$initialize( diff --git a/tests/testthat/helper.R b/tests/testthat/helper.R index 19bb6130..45391e68 100644 --- a/tests/testthat/helper.R +++ b/tests/testthat/helper.R @@ -228,11 +228,7 @@ test_graph_learner = function(task, resampling, glrn = mlr3pipelines::GraphLearner$new(grph) # Create filter parameters - param_set = paradox::ParamSet$new( - params = list(paradox::ParamDbl$new("importance.filter.frac", - lower = 0.1, upper = 1 - )) - ) + param_set = paradox::ps(importance.filter.frac = paradox::p_dbl(lower = 0.1, upper = 1)) # Create filtering instance instance = mlr3tuning::TuningInstanceSingleCrit$new( diff --git a/tests/testthat/test-autotuner.R b/tests/testthat/test-autotuner.R index fe8795a9..44f3e3e2 100644 --- a/tests/testthat/test-autotuner.R +++ b/tests/testthat/test-autotuner.R @@ -14,10 +14,10 @@ test_that("AutoTuner works with sptcv methods", { logger_mlr3$set_threshold("warn") learner = lrn("classif.rpart") - tune_ps = ParamSet$new(list( - ParamDbl$new("cp", lower = 0.001, upper = 0.1), - ParamInt$new("minsplit", lower = 1, upper = 10) - )) + tune_ps = ps( + cp = p_dbl(lower = 0.001, upper = 0.1), + minsplit = p_int(lower = 1, upper = 10) + ) terminator = trm("evals", n_evals = 2) tuner = tnr("random_search")