What is the updated Syntex

Code From LOO-PIT tutorial

with hierarchical_model:
  idata_normal = az.from_pymc3(
        trace=trace,
        prior=idata,
        posterior_predictive=ppc,
        model=hierarchical_model,
        
    )

giving error as


AttributeError Traceback (most recent call last)
in <cell line: 1>()
1 with hierarchical_model:
----> 2 idata_normal = az.from_pymc3(
3 trace=trace,
4 prior=idata,
5 posterior_predictive=ppc,
AttributeError: module ‘arviz’ has no attribute ‘from_pymc3’

what is the updated syntex used here

You don’t need to convert, the objects returned by the sampling functions are already InferenceData in the recent versions of PyMC

1 Like