-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support different data types for optimization parameters #93
Comments
Interesting, the kernel change they propose wouldn't be too hard to implement. My only concern is making the API more and more cumbersome by piling features. However this one is requested often enough to be worth considering. |
I can try to take a look at it too. I'll let you know if I get anywhere. |
Could I propose a different approach to categorical strings data types ? |
Did anyone advanced on this ? |
It would be really useful to have these types supported. |
+1 I'd like this too! |
1 similar comment
+1 I'd like this too! |
I proposed an implementation for the type integer in a merge request. It is more a first shot than a terminated work, improvements can be done. Could anyone take a look to discuss on this please? |
Great suggestion! Parameter typing would be really useful, specially for categorical parameters. |
+1 I would like to use integers |
Is it possible to exclude specific points in the bounds? Another thing, it sometime "gets stuck" on points (iter 10-16) which seems a waste: | iter | target | e || 1 | 0.7492 | 0.2963 |
|
There's no way to exclude boundary points. I don't think the extra complexity would justify. As you mentioned you can simply use And in this particular example the optimizer was not stuck, it was simply exploiting the maximum region around |
Thank you. |
+1 any updates? thanks. |
I'm looking to use this for booleans, any updates? |
It would be nice to support different data types---e.g.
int
,float
,bool
, and maybe a categorical string---for the parameters over which we optimize. I am not sure what the syntax would look like, except for maybe a list of datatypes passed in that corresponds to the parameter bounds.All three of these types could be handled the same way, with
int
being drawn uniformly from the integer interval specified,bool
being drawn uniformly from{0, 1}
, and categorical strings being mapped to a drawing from integer values[0, 1, ..., n_categories-1]
or one-hot encoded as @PedroCardoso suggested below.See [E. C. Garrido-Merchan and D. Hernandez-Lobato, 2017] for one approach.
The text was updated successfully, but these errors were encountered: