DictModel

Contents

DictModel#

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

Bases: DictInterface

Alias for DictInterface, provided for backwards compatibility.

Deprecated since version v0.2.6: Use DictInterface 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.