R Under development (unstable) (2024-06-28 r86850 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > if (requireNamespace("testthat", quietly = TRUE)) { + library("testthat") + library("checkmate") + library("mlr3hyperband") + test_check("mlr3hyperband") + } Loading required package: mlr3tuning Loading required package: mlr3 Loading required package: paradox Starting 2 test processes [ FAIL 13 | WARN 0 | SKIP 0 | PASS 95 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_TunerHyperband.R:7:3'): TunerBatchHyperband works ────────────── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(eta = 2, learner) at test_TunerHyperband.R:7:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:16:3'): TunerBatchHyperband works with minimum budget > 1 ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(eta = 2, learner) at test_TunerHyperband.R:16:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:25:3'): TunerBatchHyperband rounds budget ───── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(eta = 2, learner) at test_TunerHyperband.R:25:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:34:3'): TunerBatchHyperband works with eta = 2.5 ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(eta = 2.5, learner) at test_TunerHyperband.R:34:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:47:3'): TunerBatchHyperband works with xgboost ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(eta = 2, learner) at test_TunerHyperband.R:47:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:58:3'): TunerBatchHyperband works with subsampling ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(eta = 3, graph_learner) at test_TunerHyperband.R:58:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:68:3'): TunerBatchHyperband works works with multi-crit ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(...) at test_TunerHyperband.R:68:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:79:3'): TunerBatchHyperband works with custom sampler ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(eta = 2, learner, sampler = sampler) at test_TunerHyperband.R:79:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:164:3'): TunerBatchHyperband minimizes measure ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(...) at test_TunerHyperband.R:164:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:175:3'): TunerBatchHyperband maximizes measure ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3hyperband:::test_tuner_hyperband(...) at test_TunerHyperband.R:175:3 2. └─mlr3tuning::tune(...) at D:\RCompile\CRANincoming\R-devel\mlr3hyperband.Rcheck\tests\testthat\helper.R:26:3 3. └─tuner$optimize(instance) 4. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 5. └─private$.optimizer$optimize(inst) 6. └─bbotk:::.__OptimizerBatch__optimize(...) 7. └─bbotk::optimize_batch_default(inst, self) 8. ├─base::tryCatch(...) 9. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 10. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 12. └─get_private(optimizer)$.optimize(instance) 13. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 14. ├─archive$data[archive$n_batch, , on = "batch_nr"] 15. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 16. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:195:3'): TunerBatchHyperband works with repetitions ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3tuning::tune(...) at test_TunerHyperband.R:195:3 2. └─tuner$optimize(instance) 3. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 4. └─private$.optimizer$optimize(inst) 5. └─bbotk:::.__OptimizerBatch__optimize(...) 6. └─bbotk::optimize_batch_default(inst, self) 7. ├─base::tryCatch(...) 8. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 9. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 11. └─get_private(optimizer)$.optimize(instance) 12. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 13. ├─archive$data[archive$n_batch, , on = "batch_nr"] 14. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 15. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:211:3'): TunerBatchHyperband terminates itself ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3tuning::tune(...) at test_TunerHyperband.R:211:3 2. └─tuner$optimize(instance) 3. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 4. └─private$.optimizer$optimize(inst) 5. └─bbotk:::.__OptimizerBatch__optimize(...) 6. └─bbotk::optimize_batch_default(inst, self) 7. ├─base::tryCatch(...) 8. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 9. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 11. └─get_private(optimizer)$.optimize(instance) 12. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 13. ├─archive$data[archive$n_batch, , on = "batch_nr"] 14. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 15. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") ── Error ('test_TunerHyperband.R:227:3'): TunerBatchHyperband works with infinite repetitions ── Error: logical error. i is not a data.table, but 'on' argument is provided. Backtrace: ▆ 1. └─mlr3tuning::tune(...) at test_TunerHyperband.R:227:3 2. └─tuner$optimize(instance) 3. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...) 4. └─private$.optimizer$optimize(inst) 5. └─bbotk:::.__OptimizerBatch__optimize(...) 6. └─bbotk::optimize_batch_default(inst, self) 7. ├─base::tryCatch(...) 8. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 9. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 11. └─get_private(optimizer)$.optimize(instance) 12. └─mlr3hyperband:::.__OptimizerBatchHyperband__.optimize(...) 13. ├─archive$data[archive$n_batch, , on = "batch_nr"] 14. └─data.table::`[.data.table`(archive$data, archive$n_batch, , on = "batch_nr") 15. └─data.table:::stopf("logical error. i is not a data.table, but 'on' argument is provided.") [ FAIL 13 | WARN 0 | SKIP 0 | PASS 95 ] Error: Test failures Execution halted