From 0213fc9d56b80d75abcdacb1bbee721efd8f88ef Mon Sep 17 00:00:00 2001 From: michaeldeistler Date: Tue, 23 Jan 2024 11:52:59 +0100 Subject: [PATCH] Clarify tutorial on multi-round --- tutorials/03_multiround_inference.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tutorials/03_multiround_inference.ipynb b/tutorials/03_multiround_inference.ipynb index 6d5effeaa..2a254e8bb 100644 --- a/tutorials/03_multiround_inference.ipynb +++ b/tutorials/03_multiround_inference.ipynb @@ -37,9 +37,9 @@ "# that were sampled from the obtained posterior.\n", "num_rounds = 2\n", "# The specific observation we want to focus the inference on.\n", - "x_o = torch.zeros(\n", - " 3,\n", - ")\n", + "x_o = torch.zeros(3,)\n", + "\n", + "inference = SNPE(prior)\n", "\n", "posteriors = []\n", "proposal = prior\n", @@ -279,7 +279,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -293,7 +293,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.5" + "version": "3.10.11" } }, "nbformat": 4,