We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a6314 commit a74c03fCopy full SHA for a74c03f
pymc/sampling/mcmc.py
@@ -742,6 +742,7 @@ def sample(
742
743
if var_names is not None:
744
trace_vars = [v for v in model.unobserved_RVs if v.name in var_names]
745
+ trace_vars = model.replace_rvs_by_values(trace_vars)
746
assert len(trace_vars) == len(var_names), "Not all var_names were found in the model"
747
else:
748
trace_vars = None
0 commit comments