- class liesel.goose.models.DataClassModel(log_prob_fn)[source]#
A model interface for a model state represented by a
dataclassand 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.