QuantityGenerator#

class liesel.goose.types.QuantityGenerator(*args, **kwargs)[source]#

Bases: Protocol[liesel.goose.types.TGeneratedQuantity]

Protocol for a class that calculates a quantity based on the model state and a random seed.

Methods

generate(prng_key, model_state, epoch)

Generates a new quantity based on the model and PRNG state.

has_model()

True, if a model has been set with set_model().

set_model(model)

Sets a model.

Attributes

error_book

identifier