Skip to content

Commit

Permalink
new paradox syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 committed Jan 14, 2024
1 parent 8c5dcbf commit 9c8ca7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/FSelectorShadowVariableSearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ FSelectorShadowVariableSearch = R6Class("FSelectorShadowVariableSearch",
task$cbind(data)

# add shadow variables to domain
inst$objective$domain = ParamSet$new(map(inst$objective$task$feature_names, function(s) ParamLgl$new(id = s)))
fnames = inst$objective$task$feature_names
params = rep(list(p_lgl()), length(inst$objective$task$feature_names))
names(params) = fnames
inst$objective$domain = do.call(ps, params)

# add shadow variables to search_space
inst$archive$search_space = inst$objective$domain
Expand Down

0 comments on commit 9c8ca7a

Please sign in to comment.