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 point values at idx for current chain.
BaseTrace.record(draw, stats)Record results of a sampling iteration.
BaseTrace.setup(draws, chain[, sampler_vars])Perform chain-specific setup.
Attributes
stat_nameschainChain number.
varnamesNames of tracked variables.
sampler_varsSampler stats for each sampler.