Skip to content

Commit

Permalink
Add qLogNParEGO to ACQUISITION_FUNCTION_REGISTRY (#2749)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2749

ParEGO AxSweeps currently fail due to the following error:

```
ValueError: Class `qLogNParEGO` not in Type[AcquisitionFunction] registry, please add it. BoTorch object registries are located in `ax/storage/botorch_modular_registry.py`. Please see our storage tutorial (https://ax.dev/docs/storage.html) for more details ('Customizing' section will be relevant for saving Ax object subclasses).
```

This rectifies by following the error's recommendation.

Reviewed By: saitcakmak

Differential Revision: D62280737

fbshipit-source-id: d3b87b5f6122db894c3d03fb2a0c0a4417f07f55
  • Loading branch information
bernardbeckerman authored and facebook-github-bot committed Sep 6, 2024
1 parent eaeefc6 commit 746d3c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ax/storage/botorch_modular_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
qExpectedHypervolumeImprovement,
qNoisyExpectedHypervolumeImprovement,
)
from botorch.acquisition.multi_objective.parego import qLogNParEGO
from botorch.acquisition.preference import AnalyticExpectedUtilityOfBestOption
from botorch.models import SaasFullyBayesianSingleTaskGP
from botorch.models.contextual import LCEAGP
Expand Down Expand Up @@ -144,6 +145,7 @@
qLogNoisyExpectedImprovement: "qLogNoisyExpectedImprovement",
qLogExpectedHypervolumeImprovement: "qLogExpectedHypervolumeImprovement",
qLogNoisyExpectedHypervolumeImprovement: "qLogNoisyExpectedHypervolumeImprovement",
qLogNParEGO: "qLogNParEGO",
}


Expand Down

0 comments on commit 746d3c9

Please sign in to comment.