Skip to content
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

Integer / categorical parameters #23

Open
beojan opened this issue Jul 10, 2020 · 1 comment
Open

Integer / categorical parameters #23

beojan opened this issue Jul 10, 2020 · 1 comment

Comments

@beojan
Copy link

beojan commented Jul 10, 2020

Is there a way to limit parameters to integers only? I'm currently rounding the parameter in the objective function, but this leads to the same value being evaluated multiple times.

@paulknysh
Copy link
Owner

The method/code was originally designed assuming that parametric space is continuous. Therefore, yes, for monotonic integers within a given range you can do rounding trick - I did that myself few times, seems to work well. There is no specific input format for integer parameters at the moment.

As for the categorical parameters in general case (non-integers), those obviously don't guarantee continuity (since their order is arbitrary) and therefore, I believe, the only way to proceed is to perform multiple optimizations for each combination of those parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants