Skip to content

Optimization of categorical parameters #1

Answered by lacerbi
ogencoglu asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your interest, and great question!

tl;dr answer: at the moment PyBADS (and similarly the underlying BADS method) does not support categorical variables.

In the near- to medium- future we could perhaps add support for integer variables via some tricks shown in the Bayesian optimization literature.
You could then map any discrete (ordered) set to a range of integers.
However, this trick would not work particularly well if your variables are truly categorical (i.e., there is no clear ordering, and the function takes completely different shapes based on the categorical value).

Implementing truly categorical variables would be a very interesting future project.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ogencoglu
Comment options

Answer selected by lacerbi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants