Skip to content

Commit

Permalink
adding note about coords and loglik
Browse files Browse the repository at this point in the history
  • Loading branch information
yahrMason committed Jan 11, 2024
1 parent 6a8389f commit 7dd6e9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rethinking_2/Chp_07.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@
"source": [
"#### Setup for Code 7.25+\n",
"\n",
"Have to reproduce m6.6-m6.8 from Code 6.13-6.17 in Chapter 6"
"Have to reproduce m6.6-m6.8 from Code 6.13-6.17 in Chapter 6. Note that we have to add `idata_kwargs={\"log_likelihood\": True}` in order to have the log-likelihood of every posterior sample added to our inference data. This is necessary to compute the LOO and WAIC metrics. You can read more about it [here](https://www.pymc.io/projects/docs/en/stable/learn/core_notebooks/model_comparison.html#model-log-likelihood)."
]
},
{
Expand Down
7 changes: 7 additions & 0 deletions Rethinking_2/Chp_08.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@
"#### Code 8.8"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In PyMC we can use the `coords` argument when defining our model to add dimensions to the inference data object that is returned with the `pm.sample` method. This is helpful for organizing model parameters. You can read more about coordinates and inference data [here](https://cluhmann.github.io/inferencedata/)."
]
},
{
"cell_type": "code",
"execution_count": 12,
Expand Down

0 comments on commit 7dd6e9f

Please sign in to comment.