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

Search in specified discrete combinatory space #6

Open
hyiltiz opened this issue Mar 18, 2018 · 1 comment
Open

Search in specified discrete combinatory space #6

hyiltiz opened this issue Mar 18, 2018 · 1 comment

Comments

@hyiltiz
Copy link

hyiltiz commented Mar 18, 2018

Is it possible to specify discrete valid values for each dimension of the parameter (of the cost function) such that only those values on the grid are evaluated? A special case would be optimizing a single integer variable. An extension is being able to specify some dimensions of the parameter to be discrete and specify the discrete space over which it takes values. Some problems are discrete in nature, but combinatorics kills any attempt to do greedy grid search due to the curse of dimensionality.

One possible solution would be to put a map inside the evaluated function (logL) s.t. it maps continuous space into discrete one(e.g. p(1)=round(p(1)). But this wastes function evaluations for no good reason, and would be horrible for slow function evaluations.

@lacerbi
Copy link
Collaborator

lacerbi commented Mar 19, 2018

Yep, that's the solution that I currently recommend as a quick fix, but it's clearly not ideal.
I had this request before and I have been thinking of implementing integer variables, but not happening soon, it does require some tinkering.

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