Skip to content

Commit 661dfdd

Browse files
author
Anne Draelos
committed
Cleaning up model notebooks
1 parent 05e1616 commit 661dfdd

4 files changed

Lines changed: 22 additions & 1020 deletions

File tree

‎models/VJF.ipynb‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,7 @@
564564
" y_tilde = mdl_copy.decoder(x).detach().cpu().numpy()\n",
565565
" # y_var didn't change\n",
566566
"\n",
567-
" # cumulative sum on sample logprobs\n",
568-
" new_sample_logprobs = [diagonal_normal_logpdf(y_, y_var, y_tprime.cpu().numpy()) for y_ in y_tilde]\n",
569-
" sample_logprobs = [a + b for a, b in zip(sample_logprobs, new_sample_logprobs)]\n",
567+
" sample_logprobs = [diagonal_normal_logpdf(y_, y_var, y_tprime.cpu().numpy()) for y_ in y_tilde]\n",
570568
"\n",
571569
" logprob = logsumexp(sample_logprobs) - np.log(S)\n",
572570
" trajectory_logprobs.append(logprob)\n",
@@ -785,7 +783,7 @@
785783
],
786784
"metadata": {
787785
"kernelspec": {
788-
"display_name": "Python 3 (ipykernel)",
786+
"display_name": "Python 3",
789787
"language": "python",
790788
"name": "python3"
791789
},
@@ -799,7 +797,7 @@
799797
"name": "python",
800798
"nbconvert_exporter": "python",
801799
"pygments_lexer": "ipython3",
802-
"version": "3.9.5"
800+
"version": "3.6.9"
803801
}
804802
},
805803
"nbformat": 4,

0 commit comments

Comments
 (0)