-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use model-recommended best points in ax/service/utils/best_point with…
… discrete models (#3204) Summary: Pull Request resolved: #3204 Context: `GenResults` has a field `best_observation_features` that winds up used by in ax's best-point functions (ax/service/utils/best_point.py). `ThompsonSampler` has an opinion about the best arm, but doesn't pass that information through to `DiscreteModelBridge`, and `DiscreteModelbridge` doesn't look for the best point if it has been passed. This unblocks benchmarking the bandits GS, which needs a best-point recommendation for computing inference regret. This PR: * Has `DiscreteModelBridge._gen` check `gen_metadata` for a "best_x" and uses it to construct `best_observation_features` if present. * Adds a type annotation * Has `ThompsonSampler.gen` return a "best_x" in the `gen_metadata` field Reviewed By: jelena-markovic Differential Revision: D67532559 fbshipit-source-id: d80d78ca8d9c25d9732021096c61c466c26f1355
- Loading branch information
1 parent
1e16d48
commit 2d375ab
Showing
4 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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