pymc.sample_approx#

pymc.sample_approx(approx, draws=100, include_transformed=True)[源代码]#

从变分后验中抽取样本。

参数:
approx: :class:`近似`

近似于采样

平局数: `int`

随机样本的数量。

include_transformed: `bool`

如果为True,转换后的变量也会被采样。默认为True。

返回:
trace: class:pymc.backends.base.MultiTrace

从变分后验中抽取的样本。