Open sethaxen opened 1 year ago
See https://github.com/invenia/KeyedDistributions.jl for an array-based take on this: it builds on keyed arrays. But yeah Base NamedTuples would also be useful.
Hi I also think this would be a really useful idea. Any plans for this to make it forward?
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: