Update 17_3_Importance_Sampling.ipynb

This commit is contained in:
udlbook
2024-02-23 12:32:39 -05:00
committed by GitHub
parent 46e119fcf2
commit 9b2b30d4cc

View File

@@ -387,7 +387,7 @@
"def compute_expectation2b(n_samples):\n",
" # TODO -- complete this function\n",
" # 1. Draw n_samples from auxiliary distribution\n",
" # 2. Compute f[y] for those samples\n",
" # 2. Compute f2[y] for those samples\n",
" # 3. Scale the results by pr_y / q_y\n",
" # 4. Compute the mean of these weighted samples\n",
" # Replace this line\n",