Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
When drawing from Laplace, variational, or Pathfinder approximation, in rare cases we see NaN or Inf for lp__ or lp_approx__ written in csv. From the further usage point of view, it would be useful if all NaN and Inf would be converted to -Inf.
The downside is that it may sometimes make it more difficult to find out numerically unstable computation in code (ie observing NaN or Inf gives non-zero information where the issue might be).
When drawing from Laplace, variational, or Pathfinder approximation, in rare cases we see NaN or Inf for
lp__
orlp_approx__
written in csv. From the further usage point of view, it would be useful if all NaN and Inf would be converted to -Inf.The downside is that it may sometimes make it more difficult to find out numerically unstable computation in code (ie observing NaN or Inf gives non-zero information where the issue might be).