mlr-org / paradox

ParamHelpers Next Generation
https://paradox.mlr-org.com
GNU Lesser General Public License v3.0
28 stars 7 forks source link

paradox check breaks with to_tune over large param set #386

Closed mb706 closed 1 year ago

mb706 commented 1 year ago
ps(x = p_dbl(0, 1))$set_values(
  x= to_tune(mlr3misc::invoke(ps,
    .args = ParamDbl$new("x", 0, 1)$rep(50)$params,
    .extra_trafo = function(x, param_set) list(x = 1))
  )
)
#> Error in self$assert(xs) : 
#>  Assertion on 'xs' failed: x: tune token invalid: Cross product of elements provided to CJ() would result in 1125899906842624 rows which exceeds .Machine$integer.max == 2147483647.

problem is that check tries out a design_grid of resolution 2, which fails if there are too many dimensions.