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

Fix TPE sampling in narrow spaces #650

Merged
merged 2 commits into from
Sep 2, 2021

Conversation

bouthilx
Copy link
Member

@bouthilx bouthilx commented Sep 1, 2021

[Solves #647]

Why:

The GMM for real values could not sample efficiently in narrow spaces.
It would often lead to RuntimeError because the number of attempts
allowed would be exhausted. We could increase the default number of
attempts allowed but that would increase the computational cost for any
space, even those easy to sample.

How:

Use numpy array to avoid playing with a list. It is more efficient.
Also, increase the number of attempts as needed until it reaches a max
value of attempts. This way easy samples do not take more time while
difficult ones are allowed more.

Why:

The GMM for real values could not sample efficiently in narrow spaces.
It would often lead to RuntimeError because the number of attempts
allowed would be exhausted. We could increase the default number of
attempts allowed but that would increase the computational cost for any
space, even those easy to sample.

How:

Use numpy array to avoid playing with a list. It is more efficient.
Also, increase the number of attempts as needed until it reaches a max
value of attempts. This way easy samples do not take more time while
difficult ones are allowed more.
@bouthilx bouthilx added the bug Indicates an unexpected problem or unintended behavior label Sep 1, 2021
@bouthilx bouthilx added this to the v0.1.17 milestone Sep 1, 2021
@bouthilx bouthilx added this to In progress in Release v0.1.17 via automation Sep 1, 2021
@bouthilx bouthilx merged commit 9a7a6e4 into Epistimio:develop Sep 2, 2021
Release v0.1.17 automation moved this from In progress to Done Sep 2, 2021
@bouthilx bouthilx deleted the hotfix/tpe_narrow_sampling branch September 2, 2021 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant