Genify.jl
Genify.jl copied to clipboard
Automatically convert Julia methods to Gen functions.
Second last code snippet, missing a comma after 3: julia> trace, w = generate(genscale, (3), observations); to: julia> trace, w = generate(genscale, (3,), observations);
I'm unable to get Genify working with a truncated distribution. Please see this small example ``` using Genify using Distributions function truncated_normal(mean, sd, lb, ub) d = Truncated(Normal(mean, sd), lb,...
Misses this case in IR: ```julia %6 = Main.AutoAddressing2.Jaynes.trace(%18, Main.AutoAddressing2.Jaynes.flatten, %5) %7 = Base.getindex(%6, 1) %8 = Base.lastindex(%6) %9 = 2:%8 %10 = Base.getindex(%6, %9) %11 = Core._apply_iterate(Base.iterate, Main.AutoAddressing2.Jaynes.simulate, %10)...
I'm trying to run the following example taken from the `Genify` documentation. `genify` runs without error on the provided function, but when I try to sample from the model, I...