Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
roussel-ryan committed Jan 8, 2025
1 parent f6f8c42 commit 3c9bc66
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@
"\n",
" # add ground truth functions to plots\n",
" out = test_function({\"x\": test_x})\n",
" ax[0,0].plot(test_x, out[\"f\"], \"C0-.\")\n",
" ax[1,0].plot(test_x, out[\"c\"], \"C2-.\")\n",
" ax[0, 0].plot(test_x, out[\"f\"], \"C0-.\")\n",
" ax[1, 0].plot(test_x, out[\"c\"], \"C2-.\")\n",
"\n",
" # do the optimization step\n",
" X.step()"
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/single_objective_bayes_opt/custom_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
"\n",
"fig, ax = generator.visualize_model(n_grid=len(test_x))\n",
"# plot ground truth\n",
"ax[0,0].plot(test_x, y(test_x), \"C0-.\")\n",
"ax[1,0].plot(test_x, c(test_x), \"C2-.\");"
"ax[0, 0].plot(test_x, y(test_x), \"C0-.\")\n",
"ax[1, 0].plot(test_x, c(test_x), \"C2-.\");"
]
},
{
Expand Down Expand Up @@ -260,8 +260,8 @@
"\n",
"fig, ax = generator.visualize_model(n_grid=len(test_x))\n",
"# plot ground truth\n",
"ax[0,0].plot(test_x, y(test_x), \"C0-.\")\n",
"ax[1,0].plot(test_x, c(test_x), \"C2-.\");"
"ax[0, 0].plot(test_x, y(test_x), \"C0-.\")\n",
"ax[1, 0].plot(test_x, c(test_x), \"C2-.\");"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
"\n",
" # plot true function\n",
" true_f = sin_function({\"x\": test_x})[\"f\"]\n",
" ax[0,0].plot(test_x, true_f, \"C1--\")\n",
" ax[0, 0].plot(test_x, true_f, \"C1--\")\n",
"\n",
" # do the optimization step\n",
" X.step()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,10 @@
"\n",
" # plot true function\n",
" true_f = torch.sin(test_x)\n",
" ax[0,0].plot(test_x, true_f, \"C1--\")\n",
" ax[0, 0].plot(test_x, true_f, \"C1--\")\n",
"\n",
" # do the optimization step\n",
" X.step()\n",
"\n"
" X.step()"
]
},
{
Expand Down

0 comments on commit 3c9bc66

Please sign in to comment.