zenna / Omega.jl

Causal, Higher-Order, Probabilistic Programming
MIT License
163 stars 17 forks source link

Omega distributions do not work #212

Open ga72kud opened 2 years ago

ga72kud commented 2 years ago

Omega distributions do not work normal, bernoulli, ==ₚ ... do not work also for the example the sampling does not work. Is the documentation up to date?

using Omega, Distributions
coin = Bernoulli(0.5)
function x_(rng)
  coin_ = coin(rng)
  if coin
    @show b = normal(rng, 0, 1)
  else
    @show b = normal(rng, 0, 1)
  end
  (coin = coin_, b = b)
end
x =~ x_