Repository navigation
Replies: 4 comments 11 replies
|
Hello! Looking at this code, it's not obvious to me if anything is wrong. Have you tried using |
|
I get a few problems with the toy example. I can set \lambda to 4.9, but the MAP returned by |
|
As an addendum, the Turing.jl results are pretty similar to Gen.jl, which makes me think it's mostly a numerical issue with the using Turing
@model function poisson_model_turing(Y,α,β)
# Calculate number of timepoints
l = length(Y)
λ ~ Gamma(α,β)
for i in eachindex(Y)
Y[i] ~ Poisson(λ)
end
end
model = poisson_model_turing(Y, α, β)
map_estimate = maximum_a_posteriori(model)ModeResult with maximized lp of -22040.44
[4.987322677322676] |
|
I'm trying to find an answer here. so we can close this thread; my feeling is, is that |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to get MAP optimization working on my toy example. Normally, my observations are Poisson distributed, but to get AD working, I'm using a continuous version of the Poisson that interpolates the CDF. Here's what I have so far, but the parameter values don't seem to change - can someone point me in the direction of my error?
All reactions