You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following are existing issues & suggestions in the pymc3-examples repo after going through an iteration of renaming plot dependencies from pm. to arviz.
Note: This is similar to the pre-existing #34 issue.
Installs
Pymc3: v3.11
theano-pymc (aesara): v 1.1.2
Issues
General Issues
Have param returninference =True
File-specific Issues
examples/pymc3_howto/lasso_block_update.ipynb
Issue
"return_inferencedata should be manually set, either to True or to False, but one of the two to avoid the warning.
If False, an inferencedata should be created within the model context, and passed to arviz. This will
avoid the warning of conversion without the model context and
push forward arviz best practices, it is probably not too relevant here but conversion may not be cheap for some models because it requires computing all the pointwise log likelihood values. az.plot_xyz(trace) works because ArviZ internally converts the data to inferencedata, then plots."
examples/pymc3_howto/data_container.ipynb
Issue
We should have "keep_size=True to avoid the warning in the cell below, also because in a future ArviZ release the behaviour of hdi will change for 2d arrays (not for 1d or 3d+ arrays), so using 3d arrays with chain, draw, *shape should be used."
One dependency errors out, this making remainder of notebook not run.
Errors on missing sd_log__, and therefore cannot run entire notebook due to dependency.
Particularly
GLM-model-selection KeyError: 'var names: "['sd_log__'] are not present" in dataset'
Issue
I'm not familiar with this notebook and find the pandas stuff happening above quite confusing. The model selection should be simplified with newer ArviZ features. Having to work with straces directly is not something we should need to teach 😬
The text was updated successfully, but these errors were encountered:
On the ODE_with_manual_gradients.ipynb, something related with the gradients must have broken, it used to sample all variables using NUTS, but the latest rerun uses nuts only for sigma:
some cells below on the same notebook, the call to sample_posterior_predictive should not use the samples argument and should let pymc3 use the default: as many samples as the posterior:
Uh oh!
There was an error while loading. Please reload this page.
Summary
The following are existing issues & suggestions in the pymc3-examples repo after going through an iteration of renaming plot dependencies from
pm.
toarviz.
Installs
Issues
General Issues
returninference =True
File-specific Issues
Issue
"
return_inferencedata
should be manually set, either to True or to False, but one of the two to avoid the warning.If False, an
inferencedata
should be created within the model context, and passed to arviz. This willaz.plot_xyz(trace)
works because ArviZ internally converts the data to inferencedata, then plots."Issue
We should have "keep_size=True to avoid the warning in the cell below, also because in a future ArviZ release the behaviour of hdi will change for 2d arrays (not for 1d or 3d+ arrays), so using 3d arrays with chain, draw, *shape should be used."Code
Issue
"Since we are not storing the summary dataframe anywhere and we only want the rhat, we should use rhat instead. The assertion can be done with:
assert (az.rhat(trace).to_array() < 1.1).all()
"Code
Similar to PR 43, for line 33 at variable
trace =
I changed init from
adapt_diag
tojitter+adapt_diag
& added paramcores=1
.Issue
I get a sampling error when using adapt_diagor other adapter types....unsure why.The error:
SamplingError: Bad initial energy
Seen here

Issue 1
Code
Issue
One dependency errors out, this making remainder of notebook not run.
Errors on missing
sd_log__
, and therefore cannot run entire notebook due to dependency.Particularly
GLM-model-selection KeyError: 'var names: "['sd_log__'] are not present" in dataset'
More details here
Issue 2
Code
Issue
I'm not familiar with this notebook and find the pandas stuff happening above quite confusing. The model selection should be simplified with newer ArviZ features. Having to work with straces directly is not something we should need to teach 😬The text was updated successfully, but these errors were encountered: