Ax
Ax copied to clipboard
Pull out mixin for setting `X_pending` in acquisition functions
Summary:
Formerly, all subclasses of Acquisition had a method set_X_pending, even if they did not support pending points. This confused me while writing tests for optimizing acquisition functions.
- Pulled out a mixin
XPendingMixinso that classes only have the methodset_X_pendingwhere it is functional and appropriate - Removed "UnsupportedError" overrides from classes that no longer have a
set_X_pendingmethod - Clarified which classes are supported in
optimize_acqfand similar functions; added more precise type hints.
Differential Revision: D55843962
This pull request was exported from Phabricator. Differential Revision: D55843962
This pull request was exported from Phabricator. Differential Revision: D55843962