We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The trace.report in PyMC3 now has attributes n_tune, n_draws and t_sampling (see pymc-devs/pymc#3827).
trace.report
n_tune
n_draws
t_sampling
I have this snippet to store those metadata with the trace:
idat = arviz.from_pymc3(trace) if hasattr(trace.report, 'n_tune'): idat.posterior.attrs['n_tune'] = trace.report.n_tune idat.posterior.attrs['n_draws'] = trace.report.n_draws idat.posterior.attrs['t_sampling'] = trace.report.t_sampling
Using n_draws, one can now slice a trace that contains warmup iterations:
trace_warmup = trace[:-trace.report.n_draws] # <-- may result in len(trace_warmup) == 0 trace_posterior = trace[-trace.report.n_draws:]
I suppose both snippets should find their place in the PyMC3Converter, but I'm not sure how saving the warmup should be done.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Tell us about it
The
trace.report
in PyMC3 now has attributesn_tune
,n_draws
andt_sampling
(see pymc-devs/pymc#3827).I have this snippet to store those metadata with the trace:
Using
n_draws
, one can now slice a trace that contains warmup iterations:Thoughts on implementation
I suppose both snippets should find their place in the PyMC3Converter, but I'm not sure how saving the warmup should be done.
The text was updated successfully, but these errors were encountered: