Helper function to define a categorical choice set for Bayesian optimization.

opt_cat(choices)

Arguments

choices

A vector of values (numeric, character, or logical) to choose from.

Value

An object of class "opt_param_def".

Examples

# Choose between different optimizers
space_opt <- opt_cat(c("avltree", "rbtree"))