alashworth / test-issue-import

0 stars 0 forks source link

Print exceptions on one line #78

Open alashworth opened 5 years ago

alashworth commented 5 years ago

Issue by bgoodri Sunday Aug 09, 2015 at 02:41 GMT Originally opened as https://github.com/stan-dev/stan/issues/1580


Currently, the output looks like

> cat(unique(hmm), sep = "\n")
Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Exception thrown at line 306:
stan::math::normal_log: Location parameter[1] is -nan, but must be finite!
If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.

This makes it difficult to filter the unique exceptions because the "Exception thrown at line 306" is on a different line than "stan::math::normal_log: Location parameter[1] is -nan, but must be finite!". I'm going to do a one-line PR in a second that puts those two things onto the same line.

alashworth commented 5 years ago

Comment by syclik Monday Aug 17, 2015 at 23:24 GMT


1581 fixed a bit of this. The discussion has some more instances we need to fix.