ReactiveBayes / GraphPPL.jl

DSL for probabilistic models specification and probabilistic programming.
MIT License
32 stars 5 forks source link

Stacked constraints are not supported #211

Closed bvdmitri closed 5 months ago

bvdmitri commented 5 months ago

Previously we could write the following

@constraints begin
    q(x) :: SampleListFormConstraint(1000) :: PointMassFormConstraint()
end

which would create a stacked constraint. There is a workaround though

@constraints begin
    q(x) :: (SampleListFormConstraint(1000) + PointMassFormConstraint())
end

but would be still nice to support the old syntax