-
Notifications
You must be signed in to change notification settings - Fork 421
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
Adding a NamedTupleVariate #1762
Comments
See https://github.com/invenia/KeyedDistributions.jl for an array-based take on this: it builds on keyed arrays. |
Hi I also think this would be a really useful idea. Any plans for this to make it forward? |
I had a local draft I just pushed to #1803. Still needs tests and some clarification about eltypes, but it works. |
It could be useful to add a
NamedTupleVariate
with necessary defaults to this package. A concrete use case is that one may want a product distribution with easy access to the individual components.Here's a barebones implementation:
and example usage:
The text was updated successfully, but these errors were encountered: