Skip to content

Commit

Permalink
Fix botorch references
Browse files Browse the repository at this point in the history
Botorch seems to have moved hosting locations for the API
  • Loading branch information
Scienfitz committed Feb 1, 2025
1 parent d49ebbf commit e1fa916
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion baybe/constraints/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def to_botorch(
"""Cast the constraint in a format required by botorch.
Used in calling ``optimize_acqf_*`` functions, for details see
https://botorch.org/api/optim.html#botorch.optim.optimize.optimize_acqf
:func:`botorch.optim.optimize.optimize_acqf`
Args:
parameters: The parameter objects of the continuous space.
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@

# Mappings to all external packages that we want to have clickable links to
intersphinx_mapping = {
"botorch": ("https://botorch.readthedocs.io/en/latest", None),
"python": ("https://docs.python.org/3", None),
"pandas": ("https://pandas.pydata.org/docs/", None),
"polars": ("https://docs.pola.rs/api/python/stable/", None),
Expand All @@ -256,7 +257,7 @@
"numpy": ("https://numpy.org/doc/stable/", None),
"torch": ("https://pytorch.org/docs/main/", None),
"rdkit": ("https://rdkit.org/docs/", None),
"shap": ("https://shap.readthedocs.io/en/latest/", None),
"shap": ("https://shap.readthedocs.io/en/stable/", None),
}

# --- Options for autodoc typehints and autodoc -------------------------------
Expand Down
2 changes: 1 addition & 1 deletion examples/Transfer_Learning/backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

### Creating the Search Space

# This example uses the [Hartmann Function](https://botorch.org/api/test_functions.html#botorch.test_functions.synthetic.Hartmann)
# This example uses the [Hartmann Function](botorch.test_functions.synthetic.Hartmann)
# as implemented by `botorch`.
# The bounds of the search space are dictated by the test function and can be extracted
# from the function itself.
Expand Down

0 comments on commit e1fa916

Please sign in to comment.