pymc.backends.base.BaseTrace#
- class pymc.backends.base.BaseTrace(name, model=None, vars=None, test_point=None)[source]#
Base trace object
- Parameters:
- name: str
Name of backend
- model: Model
If None, the model is taken from the with context.
- vars: list of variables
Sampling values will be stored for these variables. If None, model.unobserved_RVs is used.
- test_point: dict
use different test point that might be with changed variables shapes
Methods
BaseTrace.__init__
(name[, model, vars, ...])Close the backend.
BaseTrace.get_sampler_stats
(stat_name[, ...])Get sampler statistics from the trace.
BaseTrace.get_values
(varname[, burn, thin])Get values from trace.
BaseTrace.point
(idx)Return dictionary of point values at idx for current chain with variables names as keys.
BaseTrace.record
(draw, stats)Record results of a sampling iteration.
BaseTrace.setup
(draws, chain[, sampler_vars])Perform chain-specific setup.
Attributes
stat_names
chain
Chain number.
varnames
Names of tracked variables.
sampler_vars
Sampler stats for each sampler.