Skip to content

Commit 18a4168

Browse files
committed
add tutorial 15 without outputs and meta
1 parent 71d6bfa commit 18a4168

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tutorials/15_importance_sampled_posteriors.ipynb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"id": "4808d6d3-cb14-4ecd-a0f5-824bf54a5b01",
7272
"metadata": {},
7373
"source": [
74-
"We first define a simulator and a prior which both have a `sample` function (as required for `sbi`) and `log_prob` evaluations (as required for importance sampling)."
74+
"We first define a simulator and a prior which both have functions for sampling (as required for SBI) and log_prob evaluations (as required for importance sampling)."
7575
]
7676
},
7777
{
@@ -202,10 +202,8 @@
202202
"id": "7150cc13-9911-4656-936f-9cafb867eba4",
203203
"metadata": {},
204204
"source": [
205-
"With the `sbi` toolbox, importance sampling is a one-liner. `sbi` supports two methods\n",
206-
"for importance sampling:\n",
207-
"\n",
208-
"- `\"importance\"`: returns `n_samples` weighted samples (as above) corresponding to `n_samples * sample_efficiency` samples from the posterior. This results in unbiased samples, but the number of effective samples may be small when the `sbi` estimate is inaccurate.\n",
205+
"With the SBI toolbox, importance sampling is a one-liner. SBI supports two methods for importance sampling:\n",
206+
"- `\"importance\"`: returns `n_samples` weighted samples (as above) corresponding to `n_samples * sample_efficiency` samples from the posterior. This results in unbiased samples, but the number of effective samples may be small when the SBI estimate is inaccurate.\n",
209207
"- `\"sir\"` (sampling-importance-resampling): performs rejection sampling on a batched basis with batch size `oversampling_factor`. This is a guaranteed way to obtain `N / oversampling_factor` samples, but these may be biased as the weight normalization is not performed across the entire set of samples."
210208
]
211209
},

0 commit comments

Comments
 (0)