Hi all,
Let me know if there is a better place to post this.
I’m trying to convert sample output from PyJAGS into an ArviZ InferenceData object using arviz.from_pyjags(), but this fails with ValueError: too many values to unpack (expected 3).
This is my call:
data = az.from_pyjags(
posterior=samples,
log_likelihood={“y”: “log_lik”
)
It clearly fails because one of my parameters is 4d while ArviZ expects 3. This is the parameter in question:
Variable: b.friend, Shape: (43, 43, 5000, 3), Type: <class ‘numpy.ndarray’>
The 4 items are (dimension1, dimension2, draws, chains)
Is there a way around this beyond coercing my 2 dimensions into 1?
ArviZ 0.21.0, pyjags 1.3.8
Thanks