Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]: Rethinking_2 Chp_04: update trace_to_dataframe() to InferenceData #143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Rethinking_2/Chp_04.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,12 @@
],
"source": [
"trace_df = pm.trace_to_dataframe(trace_4_1)\n",
"trace_df.cov()"
"trace_df.cov()\n",
"\n",
"# update: trace saved with InferenceData format\n",
"# trace_to_dataframe() retained until update to InferenceData is stable\n",
"with pm.Model() as m4_1:\n",
" pm_data = az.from_pymc3(trace=trace_4_1)"
]
},
{
Expand Down