Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tutorials, change MNLE default for log_transform to False #1367

Merged
merged 3 commits into from
Jan 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix fmpe typo, add nle seed
janfb committed Jan 15, 2025
commit 562170e1da73f82ef647ebf292b0147e7479b7c1
5 changes: 3 additions & 2 deletions tutorials/16_implemented_methods.ipynb
Original file line number Diff line number Diff line change
@@ -187,7 +187,7 @@
"from sbi.inference import FMPE\n",
"\n",
"inference = FMPE(prior)\n",
"# FMPE does support multiple rounds of inference\n",
"# FMPE does not support multiple rounds of inference\n",
"theta = prior.sample((num_sims,))\n",
"x = simulator(theta)\n",
"inference.append_simulations(theta, x).train()\n",
@@ -310,7 +310,8 @@
"\n",
"inference = MNLE(prior)\n",
"theta = prior.sample((num_sims,))\n",
"x = simulator(theta)\n",
"# add a column of discrete data to x.\n",
"x = torch.cat((simulator(theta), torch.bernoulli(theta[:, :1])), dim=1)\n",
"_ = inference.append_simulations(theta, x).train()\n",
"posterior = inference.build_posterior().set_default_x(x_o)"
]