Skip to content

Commit 3def75b

Browse files
committed
Add partialling Notebook
1 parent fa0b226 commit 3def75b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

notebooks/walkthrough/partialling.ipynb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,15 @@
256256
"from pytensor.tensor.math import Dot\n",
257257
"from pytensor.tensor.random.basic import NormalRV\n",
258258
"\n",
259-
"def sample_posterior(unobserved_rvs, observed_rvs, data: dict, tune: int, draws: int, chains: int):\n",
259+
"def sample_posterior(\n",
260+
" unobserved_rvs,\n",
261+
" observed_rvs,\n",
262+
" data: dict,\n",
263+
" tune: int,\n",
264+
" draws: int,\n",
265+
" chains: int,\n",
266+
"):\n",
267+
"\n",
260268
" if not (len(unobserved_rvs) == 1 and len(observed_rvs) == 1 and len(data) == 2):\n",
261269
" raise NotImplementedError(\n",
262270
" f\"Posterior sampling of model with {len(unobserved_rvs)=}, {len(observed_rvs)=} and {len(data)=} not implemented\")\n",

0 commit comments

Comments
 (0)