You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How should I deal with R functions that evalulate to Inf or NaN when passing them to stan_sample? For instance I ported the gp_pois_reg example from the posteriordb set (i.e., posteriordb::stan_code('gp_pois_regr') to RTMB and occasionally it crashes out presumably due to numeric issues with the Cholesky decomposition for extreme values during warmup. Reprex below. Is there a way around this? My understand is that it should just be ignored by Stan and counted as a divergence and a new trajectory tried at the next iteration.
How should I deal with R functions that evalulate to Inf or NaN when passing them to
stan_sample
? For instance I ported thegp_pois_reg
example from the posteriordb set (i.e.,posteriordb::stan_code('gp_pois_regr')
to RTMB and occasionally it crashes out presumably due to numeric issues with the Cholesky decomposition for extreme values during warmup. Reprex below. Is there a way around this? My understand is that it should just be ignored by Stan and counted as a divergence and a new trajectory tried at the next iteration.The text was updated successfully, but these errors were encountered: