liesel
liesel copied to clipboard
Goose error logging: Include type of error
Currently, the messages that goose logs during MCMC sampling look like this:
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]