Added marginal tests, to ensure that Normal and BetaBernoulli were computing the right marginal (comparing against inexact marginalization with boost).
Fixed DirichletCategorical and Bigram logp_score. transform_reduce was using 0 as an accumulator instead of 0., so this was rounding all calculations to ints.
Checked that DirichletCategorical and BetaBernoulli agree.
Added marginal tests, to ensure that Normal and BetaBernoulli were computing the right marginal (comparing against inexact marginalization with boost).
Fixed DirichletCategorical and Bigram logp_score.
transform_reduce
was using 0 as an accumulator instead of 0., so this was rounding all calculations to ints.Checked that DirichletCategorical and BetaBernoulli agree.