Open
Conversation
… feature/batch_bo_issue_1229
dengdifan
reviewed
Jun 12, 2025
smac/main/config_selector.py
Outdated
| self._model, GaussianProcess | ||
| ), "Sample based estimate strategy only allows GP as surrogate model!" | ||
| return self._model.sample_functions(X_test=X_running, n_funcs=1) | ||
| elif estimation_strategy == "q_ei": |
Contributor
There was a problem hiding this comment.
Hmm... I think if we use q_ei, there is no need to estimate the running configurations. i.e., we use q_ei to provide multiple candidates at once.
Contributor
Author
There was a problem hiding this comment.
I removed this part.
dengdifan
reviewed
Jun 12, 2025
| if not self._log: | ||
| f_samples = normal_samples # in original (normal) space | ||
| f_min_sample = np.min(f_samples, axis=1) | ||
| improvement = np.maximum(self._eta - self._xi - f_min_sample, 0.0) |
Contributor
There was a problem hiding this comment.
Not quite sure here, but if the surrogate model is a GP, we can directly sample from the joint posterior distribution. As shown in botorch: https://botorch.readthedocs.io/en/stable/acquisition.html#botorch.acquisition.monte_carlo.qExpectedImprovement
Contributor
Author
There was a problem hiding this comment.
I replaced it with the surrogate model, if it is a GP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am not sure if it is correctly implemented. Please check!