Reference / binference.engines.Engine
binference.engines.Engine¶
- class binference.engines.Engine(model, *, rng=None, progress=False)[source]¶
Base class of all inference engines.
Engines are configured at construction and executed with
run(), which returns aPopulationResult(or aPointEstimateforMAP). Construction checks the options and draws no random numbers, somethod="auto"makes an engine to check its options and makes it again to run it.- Parameters:
- modelPopulationModel
The model to infer.
- rngint, numpy.random.Generator, or None
Random number generator.
- progressbool
Show a progress bar.
Methods
__init__(model, *[, rng, progress])run(*args, **kwargs)unsupported(model)Why the engine cannot run on
model, orNonewhen it can.Attributes
whether the engine infers a selection from injections or a tallied response jointly
whether its draws are Markov chains, described by R-hat and ESS
- joint = False¶
whether the engine infers a selection from injections or a tallied response jointly
- markov = False¶
whether its draws are Markov chains, described by R-hat and ESS