Skip to content

Commit

Permalink
Don't generate_design_grid with paramset of unknown dimension (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 authored Mar 17, 2023
1 parent 1303a69 commit a47e431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/to_tune.R
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pslike_to_ps.ParamSet = function(pslike, call, param, id, usersupplied = TRUE) {
# temporarily hide dangling deps
on = NULL # pacify static code check
pslike$deps = pslike$deps[on %in% pslike$ids()]
testpoints = generate_design_grid(pslike, 2)$transpose()
testpoints = generate_design_random(pslike, 10)$transpose()
pslike$deps = alldeps
invalidpoints = discard(testpoints, function(x) length(x) == 1)
if (length(invalidpoints)) {
Expand Down

0 comments on commit a47e431

Please sign in to comment.