- class liesel.goose.models.DictModel(log_prob_fn)[source]#
A model interface for a model state represented by a
dict[str, Array]and a corresponding log-probability function.
Extracts the position from the model state given a sequence of position keys.
Computes the unnormalized log-probability given the model state.
Updates the model state with the values in the position.