pymc.Approximation.sample#
- Approximation.sample(draws=500, *, random_seed=None, return_inferencedata=True, **kwargs)[source]#
Draw samples from variational posterior.
- Parameters:
- draws
int
Number of random samples.
- random_seed
int
,RandomState
orGenerator
, optional Seed for the random number generator.
- return_inferencedatabool
Return trace in Arviz format.
- draws
- Returns:
- trace:
pymc.backends.base.MultiTrace
Samples drawn from variational posterior.
- trace: