Skip to content

Conversation

aseyboldt
Copy link
Member

I implemented arbitrarily nested data structures, but had to flatten them in the trace. Complex values are still split into two variables. I'll see if I can combine those in a follow up PR as a post-processing step.

@WardBrian If you happen to have a bit of time, it would be great if you can have a quick look at the second commit to check if you see anything obviously wrong. But no worries if you are busy.

Fixes #207

Generated quantities have their own random number generator.
The seed for this generator did not depend on the global
seed of the model, so that random stream for two different
sampler runs were reusing the same randomness.
@WardBrian
Copy link
Contributor

I unfortunately don't have a ton of time before going away for a week, but the new test looks like it will catch everything, and at first glance the changes look roughly like what I would expect for this sort of thing, if that helps any!

If it's still here when I get back I can do a more thorough review

@aseyboldt
Copy link
Member Author

Thanks for having a quick look.
Have fun on your holiday :-)

@aseyboldt aseyboldt force-pushed the push-nulszkuppsyk branch from 81a89a5 to ede466e Compare May 9, 2025 09:45
@aseyboldt aseyboldt merged commit 5f7132d into pymc-devs:main May 9, 2025
6 of 8 checks passed
@aseyboldt aseyboldt deleted the push-nulszkuppsyk branch May 28, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stan: arrays with nested tuples break stan interface

2 participants