tests/testthat/_snaps/acquisition.md

conf_bound interface

Code
  conf_bound("a")
Condition
  Error in `conf_bound()`:
  ! `kappa` should be a number or a function.
Code
  conf_bound(function() 1)
Condition
  Error in `conf_bound()`:
  ! The `trade_off` function should have at least one argument.
Code
  predict(conf_bound(), test_res, maximize = 2, iter = 1)
Condition
  Error in `check_direction()`:
  ! `maximize` should be a single logical.

prob_improve interface

Code
  prob_improve("a")
Condition
  Error in `prob_improve()`:
  ! `trade_off` should be a number or a function.
Code
  prob_improve(function() 1)
Condition
  Error in `prob_improve()`:
  ! The `trade_off` function should have at least one argument.
Code
  predict(prob_improve(), test_res, maximize = 2, iter = 1)
Condition
  Error in `check_direction()`:
  ! `maximize` should be a single logical.
Code
  predict(prob_improve(), test_res, maximize = TRUE, iter = 1, best = NA)
Condition
  Error in `check_best()`:
  ! `best` should be a single, non-missing numeric.
Code
  predict(prob_improve(), test_res, maximize = TRUE, iter = 1, best = "WAT")
Condition
  Error in `check_best()`:
  ! `best` should be a single, non-missing numeric.

exp_improve interface

Code
  exp_improve("a")
Condition
  Error in `exp_improve()`:
  ! `trade_off` should be a number or a function.
Code
  exp_improve(function() 2)
Condition
  Error in `exp_improve()`:
  ! The `trade_off` function should have at least one argument.
Code
  predict(exp_improve(), test_res, maximize = 2, iter = 1)
Condition
  Error in `check_direction()`:
  ! `maximize` should be a single logical.
Code
  predict(exp_improve(), test_res, maximize = TRUE, iter = 1, best = NA)
Condition
  Error in `check_best()`:
  ! `best` should be a single, non-missing numeric.
Code
  predict(exp_improve(), test_res, maximize = TRUE, iter = 1, best = "WAT")
Condition
  Error in `check_best()`:
  ! `best` should be a single, non-missing numeric.


Try the tune package in your browser

Any scripts or data that you put into this service are public.

tune documentation built on Aug. 24, 2023, 1:09 a.m.