pymc.sample_approx#

pymc.sample_approx(approx, draws=100, include_transformed=True)[source]#

Draw samples from variational posterior.

Parameters
approx:class:Approximation

Approximation to sample from

draws: `int`

Number of random samples.

include_transformed: `bool`

If True, transformed variables are also sampled. Default is True.

Returns
trace: class:pymc.backends.base.MultiTrace

Samples drawn from variational posterior.