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
I'm tinkering with the awesome new dims functionality in PyMC3, but when trying to use it in InferenceData, I run into having to write very verbose code...
If I don't add the dims = {CONCERNINGLY LONG AND REPETITIVE DICTIONARY} part, I get each variable with its own separate coord, say, μ_dim_0.
Since az.from_pymc3 already pulls the model from the context manager, might it not also be able to pull dims from there? I see data_model has a coords dict, but not a dims one - if one were to be added in PyMC3, would it make sense to grab it and use it here?
I'd be interested in contributing that (haven't done a two-repo PR before! 😆), but would appreciate some initial pointers on whether all of that is reasonable :)
I'm running ArviZ 0.8.3, with PyMC3 3.9.1.
I'd expect this would semi-solve the corresponding pm.sample(return_inferencedata=True) as well.
The text was updated successfully, but these errors were encountered:
StanczakDominik
changed the title
Use PyMC3 3.9 dims, Model(coords) arguments from the Model context manager?
Use PyMC3 3.9 dims, Model(coords) arguments from the Model context manager instead of manually adding dims for az.from_pymc3?
Jun 19, 2020
This issue should have been fixed in #1240, it's definitely a bug. Can you confirm everything is working on ArviZ latest dev version? I have been testing it on a couple models but I'll probably have still missed some edgecases :)
Short Description
I'm tinkering with the awesome new
dims
functionality in PyMC3, but when trying to use it in InferenceData, I run into having to write very verbose code...Code example
I have this example of Starcraft data analysis (shameless self-plug :D):
Setup, for reproducibility's sake
If I don't add the
dims = {CONCERNINGLY LONG AND REPETITIVE DICTIONARY}
part, I get each variable with its own separatecoord
, say,μ_dim_0
.Since
az.from_pymc3
already pulls themodel
from the context manager, might it not also be able to pulldims
from there? I seedata_model
has acoords
dict, but not adims
one - if one were to be added in PyMC3, would it make sense to grab it and use it here?I'd be interested in contributing that (haven't done a two-repo PR before! 😆), but would appreciate some initial pointers on whether all of that is reasonable :)
I'm running ArviZ 0.8.3, with PyMC3 3.9.1.
I'd expect this would semi-solve the corresponding
pm.sample(return_inferencedata=True)
as well.The text was updated successfully, but these errors were encountered: