pymc.backends.NDArray#
- class pymc.backends.NDArray(name=None, model=None, vars=None, test_point=None)[source]#
NDArray trace object
- Parameters:
- name: str
Name of backend. This has no meaning for the NDArray 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.
Methods
NDArray.__init__
([name, model, vars, test_point])Close the backend.
NDArray.get_sampler_stats
(stat_name[, ...])Get sampler statistics from the trace.
NDArray.get_values
(varname[, burn, thin])Get values from trace.
NDArray.point
(idx)Return dictionary of point values at idx for current chain with variable names as keys.
NDArray.record
(point[, sampler_stats])Record results of a sampling iteration.
NDArray.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.