pymc.Empirical.sample#

Empirical.sample(draws=500, *, random_seed=None, return_inferencedata=True, **kwargs)#

Draw samples from variational posterior.

Parameters:
drawsint

Number of random samples.

random_seedint, RandomState or Generator, optional

Seed for the random number generator.

return_inferencedatabool

Return trace in Arviz format.

Returns:
trace: pymc.backends.base.MultiTrace

Samples drawn from variational posterior.