feat: Improve Acquisition Function optimization in discrete and mixed search spaces #257
+238
−55
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.
Issue
30combinations for search spaces with categorical hyperparameters.Additions and Deletions
maximum_allowed_categorical_combinationswhich previously set a cap on number of allowed categorical combinations in the search space.optimize_acqf_mixed()WrappedAcquisitionmodule inneps.optimizers.acquisition.wrapped_acquisition.optimize_acqf_discrete_local_search()for purely categorical and mixed search spaces.How things work now
Purely categorical search spaces:
optimize_acqf_mixed()withoptimize_discrete_local_search()which scales better with increasing number of categorical dimensions and combinations.Mixed search spaces:
optimize_acqf().WrappedAcquisitionto keep the best seen values of the continuous features fixed and optimize only over the categoricals usingoptimize_acqf_discrete_local_search(). Finally, we merge the best seen values of both the numerical and categorical features into a single tensor, perform one forward pass over the acquisition function and return the candidate and the score.Tests
PriMO,BOandPriorbandBOon theJAHSBench CIFAR10task.