-
Notifications
You must be signed in to change notification settings - Fork 4
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
inferencedata errors when model contains matrix parameters #75
Comments
Hi Seth, Thanks for filing an issue and a MWE. Definitely not working. I will take a look asap. Hopefully later today, but likely tomorrow. Best, Rob |
StanSample.jl v7.5.0 contains a fix for this issue. I've added a limited test for a matrix variable (as in your posted issue) but would like to test this for arrays in general as well. You've probably seen Brian's suggestion to move Stan related I/O to a separate package. I'm still considering the pros and cons of such an effort, but a huge pro would be to clean up code that has been updated for many, many years. It would also be a good opportunity to add support for complex variables to JSON input files and handling tuple (and complex?) outputs in generated CSV files. I will probably try these out in the current setup first. |
Thanks! Indeed, it works for me!
Thanks for the pointer, I hadn't seen that yet. From the ArviZ perspective, it's a bit tricky to support variables that cannot be trivially flattened into an array of reals. There are effectively 3 useful representations of draws:
From the perspective of ArviZ.jl, the 2nd is by far the most useful. But for Julia PPLs, where draws can technically be arbitrary Julia types, it would be useful to support the 1st option as well and support interconversion. This was low priority in the past, but Turing now has |
Thanks Seth, Your 2nd argument is spot on (maybe a key reason why I always in the end seem to switch back to DataFrames). My current goal for StanIO.jl is to flesh out the Pure tuples are also ok, tuples with mixed in arrays (and vice versa) is a bit more complex. Rob |
Environment
The text was updated successfully, but these errors were encountered: