botorch
botorch copied to clipboard
Loss closures, fit_gpytorch_torch, fit_gyptorch_mll dispatch for ApproximateGPs
Summary: Changelog:
- Enable user-defined loss closures.
fit_gptorch_torchrewrite- Add
fit_gyptorch_mlldispatch for ApproximateGPs
Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This looks like a pretty reasonable solution to me! I actually like the ability to roll my own loss closures and optimizers here, and think it's worth the extra engineering. @nataliemaus has code that sometimes wants to train a GP end to end with a VAE included in the ELBO, and sometimes only wants to train the GP, so this should let us switch even more code into using BoTorch routines.
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
Codecov Report
Merging #1439 (4f6c4ef) into main (7613cd2) will not change coverage. The diff coverage is
100.00%.
@@ Coverage Diff @@
## main #1439 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 134 143 +9
Lines 12402 12755 +353
==========================================
+ Hits 12402 12755 +353
| Impacted Files | Coverage Δ | |
|---|---|---|
| botorch/models/pairwise_gp.py | 100.00% <ø> (ø) |
|
| botorch/fit.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/__init__.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/closures/__init__.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/closures/core.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/closures/model_closures.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/core.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/fit.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/numpy_converter.py | 100.00% <100.00%> (ø) |
|
| botorch/optim/stopping.py | 100.00% <100.00%> (ø) |
|
| ... and 7 more |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211
This pull request was exported from Phabricator. Differential Revision: D39101211