Skip to content

What is the correct way to make a discrete integer param? #56

@jakob-r

Description

@jakob-r

What is the best way to achieve this in ParamHelpers?

ps = makeParamSet(makeDiscreteParam("a", c(1L,10L,25L)), makeDiscreteParam("b", letters[1:2]))
des = generateGridDesign(ps, resolution = 1)
class(des$a)
# [1] "factor"
des$a = as.integer(as.character(des$a))
des

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions