NUTSTransitionInfo#

class liesel.goose.nuts.NUTSTransitionInfo(error_code, acceptance_prob, position_moved, divergent, turning, treedepth, leapfrog)[source]#

Bases: liesel.goose.kernel.DefaultTransitionInfo

Methods

minimize()

Minimizes the transitioninfo.

Attributes

error_code

Dict of error codes and their meaning.

acceptance_prob

Acceptance probability of the transition.

position_moved

Indicates whether the transition resulted in acceptance or not.

divergent

Whether the difference in energy between the original and the new state exceeded the divergence threshold of 1000.

turning

Whether the expansion was stopped because the trajectory started turning.

treedepth

The tree depth, that is, the number of times the trajectory was expanded.

leapfrog

The number of computed leapfrog steps.