brian-j-smith/Mamba.jl

Support do-block syntax

rofinn opened this issue · 2 comments

If the node constructors took a Function as the first argument then nodes could be written like:

theta = Stochastic(1, true) do alpha, beta
    Gamma(alpha, 1 / beta)
end

Done. Changes to accept functions as the first arguments of the Logical and Stochastic constructors are now in the master branch and will be in the next package release.

Great, thank you!