pymc.MeanField.sample_node#

MeanField.sample_node(node, size=None, deterministic=False, more_replacements=None)#

Samples given node or nodes over shared posterior

Parameters:
node: PyTensor Variables (or PyTensor expressions)
size: None or scalar

number of samples

more_replacements: `dict`

add custom replacements to graph, e.g. change input source

deterministic: bool

whether to use zeros as initial distribution if True - zero initial point will produce constant latent variables

Returns:
sampled node(s) with replacements