DataClassModel

Contents

DataClassModel#

class liesel.goose.DataClassModel(log_prob_fn)[source]#

Bases: DataclassInterface

Alias for DataclassInterface, provided for backwards compatibility.

Deprecated since version v0.2.6: Use DataclassInterface instead. This alias will be removed in v0.4.0.

Methods

extract_position(position_keys, model_state)

Extracts a position from a model state.

log_prob(model_state)

Returns the log-probability from a model state.

update_state(position, model_state)

Updates and returns a model state given a position.