Only checked the transform in #415 , so now reenable functionality to draw random sample from HierarchicalDistributions / anything calling _hd_split with eff_totalndof ≠ length in primary_dist.
No guarantees that there are some calls remaining which should rather work on newly introduced _hd_split_efftotalndof
using BAT
using ValueShapes
using Distributions
using InverseFunctions
d = HierarchicalDistribution(NamedTupleDist(
a=truncated(Logistic(),0,Inf),
)) do v
NamedTupleDist(
b=Dirichlet(10,1/v.a),
)
end
trafo = BAT.DistributionTransform(Normal,d)
inverse(trafo)(rand(Normal(), BAT.eff_totalndof(d))
rand(d)
rand(unshaped(d))
trafo(rand(d))
Only checked the transform in #415 , so now reenable functionality to draw random sample from HierarchicalDistributions / anything calling _hd_split with eff_totalndof ≠ length in primary_dist. No guarantees that there are some calls remaining which should rather work on newly introduced _hd_split_efftotalndof