ParamHelpers icon indicating copy to clipboard operation
ParamHelpers copied to clipboard

maybe extend generateDesign for complex

Open berndbischl opened this issue 10 years ago • 3 comments

we should talk about how to generate space filling design for mixed and dependent spaces in a reasonable way.

berndbischl avatar Aug 19 '14 13:08 berndbischl

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.

danielhorn avatar Sep 16 '14 13:09 danielhorn

@kerschke this also fits gsoc

berndbischl avatar Jun 10 '15 20:06 berndbischl

I also stumbled over the reported issue in mlrMBO. See the corresponding issue some time ago.

jakobbossek avatar Jun 11 '15 08:06 jakobbossek