-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Let's use prefix to replace the slightly redundant NamedDist:
DynamicPPL.jl/src/distribution_wrappers.jl
Lines 5 to 12 in d0cfaaf
| """ | |
| A named distribution that carries the name of the random variable with it. | |
| """ | |
| struct NamedDist{variate,support,Td<:Distribution{variate,support},Tv<:VarName} <: | |
| Distribution{variate,support} | |
| dist::Td | |
| name::Tv | |
| end |
x ~ prefix(Normal(), "var_`") # store `var_x` instead of `x` in `varinfo`. Metadata
Metadata
Assignees
Labels
No labels