From 3c9bc669d7e9e5961055753bea7d634ad5ea70c9 Mon Sep 17 00:00:00 2001 From: Ryan Roussel Date: Tue, 7 Jan 2025 23:30:14 -0600 Subject: [PATCH] formatting --- .../constrained_bo_tutorial.ipynb | 4 ++-- .../single_objective_bayes_opt/custom_model.ipynb | 8 ++++---- .../heteroskedastic_noise_tutorial.ipynb | 2 +- .../single_objective_bayes_opt/noisy_bo_tutorial.ipynb | 5 ++--- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/examples/single_objective_bayes_opt/constrained_bo_tutorial.ipynb b/docs/examples/single_objective_bayes_opt/constrained_bo_tutorial.ipynb index 2a071b65..57f84068 100644 --- a/docs/examples/single_objective_bayes_opt/constrained_bo_tutorial.ipynb +++ b/docs/examples/single_objective_bayes_opt/constrained_bo_tutorial.ipynb @@ -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()" diff --git a/docs/examples/single_objective_bayes_opt/custom_model.ipynb b/docs/examples/single_objective_bayes_opt/custom_model.ipynb index 35d2f921..6e7dfd9d 100644 --- a/docs/examples/single_objective_bayes_opt/custom_model.ipynb +++ b/docs/examples/single_objective_bayes_opt/custom_model.ipynb @@ -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-.\");" ] }, { @@ -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-.\");" ] }, { diff --git a/docs/examples/single_objective_bayes_opt/heteroskedastic_noise_tutorial.ipynb b/docs/examples/single_objective_bayes_opt/heteroskedastic_noise_tutorial.ipynb index 432e1d26..b9fbcdca 100644 --- a/docs/examples/single_objective_bayes_opt/heteroskedastic_noise_tutorial.ipynb +++ b/docs/examples/single_objective_bayes_opt/heteroskedastic_noise_tutorial.ipynb @@ -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()" diff --git a/docs/examples/single_objective_bayes_opt/noisy_bo_tutorial.ipynb b/docs/examples/single_objective_bayes_opt/noisy_bo_tutorial.ipynb index 56e45622..846f826b 100644 --- a/docs/examples/single_objective_bayes_opt/noisy_bo_tutorial.ipynb +++ b/docs/examples/single_objective_bayes_opt/noisy_bo_tutorial.ipynb @@ -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()" ] }, {