Open fdtomasi opened 6 years ago
Make a wrapper function to internally call SVC, and encode inside the function numbers corresponding to the attributes you care about.
This way the optimisation method need not need to know the details of the arguments to optimise the function
I'm having the same issue when trying to use categorical variables with strings in their domain. @joshring If I understood correctly you are suggesting to write a wrapper function in order to be able to use integers (like a discrete variable) instead of strings.
This brings me to my next question: Are discrete variables fitted with a GP? Or are they assumed to be categorical with no local correlation? Fyi this question I'm asking is similar to the one in this link, but nobody responded to that.
This might do what you are looking for: https://github.com/SheffieldML/GPyOpt/issues/175
I would like to use non-numerical categorical variables in GPyOpt. From the error, I understand such variables are being treated in the same way as
DiscreteVariables
, but it is not possible to convert them to float.Minimal example
Output