Skip to content

Commit

Permalink
Suggest lgr
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhock committed Jan 23, 2024
1 parent 545eea8 commit d95e44a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Imports:
mlr3misc
Suggests:
animint2,
lgr,
future,
testthat,
knitr,
Expand Down
4 changes: 2 additions & 2 deletions vignettes/ResamplingSameOtherCV.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ using the multisession future plan).
if(FALSE){#for CRAN.
if(require(future))plan("multisession")
}
lgr::get_logger("mlr3")$set_threshold("warn")
if(require(lgr))get_logger("mlr3")$set_threshold("warn")
(reg.bench.result <- mlr3::benchmark(
reg.bench.grid, store_models = TRUE))
```
Expand Down Expand Up @@ -496,7 +496,7 @@ iteration can be parallelized by declaring a future plan.
if(FALSE){
if(require(future))plan("multisession")
}
lgr::get_logger("mlr3")$set_threshold("warn")
if(require(lgr))get_logger("mlr3")$set_threshold("warn")
(class.bench.result <- mlr3::benchmark(
class.bench.grid, store_models = TRUE))
```
Expand Down
4 changes: 2 additions & 2 deletions vignettes/ResamplingVariableSizeTrainCV.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ using the multisession future plan).
if(FALSE){
if(require(future))plan("multisession")
}
lgr::get_logger("mlr3")$set_threshold("warn")
if(require(lgr))get_logger("mlr3")$set_threshold("warn")
(reg.bench.result <- mlr3::benchmark(
reg.bench.grid, store_models = TRUE))
```
Expand Down Expand Up @@ -501,7 +501,7 @@ defined by our benchmark grid:
if(FALSE){
if(require(future))plan("multisession")
}
lgr::get_logger("mlr3")$set_threshold("warn")
if(require(lgr))get_logger("mlr3")$set_threshold("warn")
(class.bench.result <- mlr3::benchmark(
class.bench.grid, store_models = TRUE))
```
Expand Down

0 comments on commit d95e44a

Please sign in to comment.