ITADN
bat/BAT.jl/Issues

`HamiltonianMC()` is failed on the tutorial model

#426Closedtakuizum 创建于 2023-09-27
T
takuizumcommented
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. ``` samples = bat_sample(posterior, MCMCSampling(mcalg = MetropolisHastings(), nsteps = 10^5, nchains = 4)).result ``` Changing `mcalg = HamiltonianMC()`, return an error. ``` ERROR: Density evaluation with logdensityof failed at [NaN, NaN, NaN, NaN, NaN], must not evaluate to NaN, density is DistMeasure(objectid = 0x81ff2597fbd0fd5d, varshape = ValueShapes.ArrayShape{Real, 1}((5,))) ``` It would be greatly appreciated if someone could help with this problem. Thank you,
关闭于 2023-10-20 4 条评论