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 e07b3b6 commit dfb31eeCopy full SHA for dfb31ee
pymc/tests/test_sampling.py
@@ -767,9 +767,10 @@ def test_deterministic_of_observed_modified_interface(self):
767
return_inferencedata=False,
768
compute_convergence_checks=False,
769
)
770
- ppc_trace = pm.trace_to_dataframe(
771
- trace, varnames=[n for n in trace.varnames if n != "out"]
772
- ).to_dict("records")
+ varnames = [v for v in trace.varnames if v != "out"]
+ ppc_trace = [
+ dict(zip(varnames, row)) for row in zip(*(trace.get_values(v) for v in varnames))
773
+ ]
774
ppc = pm.sample_posterior_predictive(
775
776
model=model,
0 commit comments