Skip to content

Commit

Permalink
Import fix in custom_botorch_model_in_ax tutorial (#2601)
Browse files Browse the repository at this point in the history
Summary:
This optimizer mock was renamed in Ax, leading to an import failure in this tutorial.

Pull Request resolved: #2601

Reviewed By: Balandat, esantorella

Differential Revision: D65205716

Pulled By: saitcakmak

fbshipit-source-id: 488092748f4a4f6cf4173c05e3c2d6a4269ae95e
  • Loading branch information
saitcakmak authored and facebook-github-bot committed Oct 30, 2024
1 parent c671077 commit 66660e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/custom_botorch_model_in_ax.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"import os\n",
"from contextlib import contextmanager, nullcontext\n",
"\n",
"from ax.utils.testing.mock import fast_botorch_optimize_context_manager\n",
"from ax.utils.testing.mock import mock_botorch_optimize_context_manager\n",
"import plotly.io as pio\n",
"\n",
"# Ax uses Plotly to produce interactive plots. These are great for viewing and analysis,\n",
Expand Down Expand Up @@ -362,7 +362,7 @@
],
"source": [
"if SMOKE_TEST:\n",
" fast_smoke_test = fast_botorch_optimize_context_manager\n",
" fast_smoke_test = mock_botorch_optimize_context_manager\n",
"else:\n",
" fast_smoke_test = nullcontext\n",
"\n",
Expand Down

0 comments on commit 66660e3

Please sign in to comment.