ParamHelpers
ParamHelpers copied to clipboard
maybe extend generateDesign for complex
we should talk about how to generate space filling design for mixed and dependent spaces in a reasonable way.
The current implementation can fail. Yeah, I know, the current implementations is bad. But i found one example, where it apparently fails. Perhaps we should look at it when talking about this topic.
set.seed(2) par.set = makeParamSet( makeIntegerParam("v", lower = 1, upper=2), makeDiscreteParam("w", values = c("a", "b", "e", "g")), makeDiscreteParam("x", values = c("a", "b", "c", "d"), requires = quote(w == "a")), makeNumericParam("y", lower = 1, upper=2, requires = quote(w == "b")), makeNumericParam("z", lower = 1, upper=2, requires = quote(w == "e")) ) generateDesign(16, par.set)$x [1] <NA> b <NA> <NA> <NA> a <NA> <NA> <NA> a <NA> <NA> <NA> c <NA> <NA> Levels: a b c d
The variable x has 4 levels, and 4 lines in the design fullfill the requires for x. So every line should have a different one of the 4 factors? But, in this example, the level a appears 2 times and the level d does not appear.
@kerschke this also fits gsoc
I also stumbled over the reported issue in mlrMBO. See the corresponding issue some time ago.