liesel icon indicating copy to clipboard operation
liesel copied to clipboard

Goose error logging: Include type of error

Open jobrachem opened this issue 1 year ago • 0 comments

Currently, the messages that goose logs during MCMC sampling look like this:

image

For long-running models it would be useful to have early information about the type of error, since for example maximum tree depth errors can be less severe than divergent transitions.

I propose to change them by including the error name, for example, for a NUTS kernel:

liesel.goose.engine - WARNING - Errors encountered for kernel_00:
liesel.goose.engine - WARNING - Errors in [1, 2, 1, 50] of 50 transitions [Maximum tree depth]
liesel.goose.engine - WARNING - Errors in [0, 0, 0, 0] of 50 transitions [Divergent transition]

jobrachem avatar Feb 02 '24 16:02 jobrachem