Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed May 1, 2024
1 parent 170d650 commit 3bd95b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import(mlr3)
import(mlr3misc)
import(mlr3tuning)
import(paradox)
import(rush)
import(spacefillr)
importFrom(R6,R6Class)
importFrom(stats,dnorm)
Expand Down
1 change: 0 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#' @import lgr
#' @import mlr3
#' @import mlr3tuning
#' @import rush
#' @importFrom stats setNames runif dnorm pnorm quantile rexp
#' @useDynLib mlr3mbo c_sms_indicator c_eps_indicator
"_PACKAGE"
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_OptimizerADBO.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ test_that("adbo optimizer works", {
skip_if_not_installed("rush")
flush_redis()

rush_plan(n_workers = 2)
rush::rush_plan(n_workers = 2)
instance = oi_async(
objective = OBJ_2D,
search_space = PS_2D,
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test_TunerADBO.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test_that("adbo works with transformation functions", {
minsplit = to_tune(2, 128, logscale = TRUE),
cp = to_tune(1e-04, 1e-1, logscale = TRUE))

rush_plan(n_workers = 2)
rush::rush_plan(n_workers = 2)
instance = ti_async(
task = tsk("pima"),
learner = learner,
Expand All @@ -60,7 +60,7 @@ test_that("search works with dependencies", {
cp = to_tune(1e-04, 1e-1),
keep_model = to_tune())

rush_plan(n_workers = 2)
rush::rush_plan(n_workers = 2)
instance = ti_async(
task = tsk("pima"),
learner = learner,
Expand Down Expand Up @@ -92,7 +92,7 @@ test_that("adbo works with branching", {
"branch.selection" = to_tune(c("rpart", "debug"))
)

rush_plan(n_workers = 2)
rush::rush_plan(n_workers = 2)
instance = ti_async(
task = tsk("pima"),
learner = graph_learner,
Expand Down

0 comments on commit 3bd95b0

Please sign in to comment.