Closed takuizum closed 10 months ago
Hi, sorry @takuizum , your issue got overlooked somehow. I'll check what's wrong there.
This seems to be an intermittent error, I'm tracking it down.
This seems to occur when the parameters go to regions in which the expected counts in one of the histograms bins becomes zero. In that case, this happens:
julia> f = v -> logpdf(Poisson(v), 1)
#32 (generic function with 1 method)
julia> f(0.0)
-Inf
julia> ForwardDiff.derivative(f, 0.0)
NaN
We didn't run this tutorial with HMC often, in the past, that may be why we overlooked this "bug" in the likelihood.
@takuizum this should be fixed now in the tutorial.
Hello, everyone,
I'm trying out BAT.jl out of curiosity. I found that
HamiltonianMC()
does not work on the tutorial model. More specifically, in the tutorial, the following syntax is used to sample from the posterior of the model.Changing
mcalg = HamiltonianMC()
, return an error.It would be greatly appreciated if someone could help with this problem.
Thank you,