Example¶
- class telescopic.examples.Example(name, log_prob, grad, initial, mean, cov, conditional=None, blocks=None)¶
A target with exact answers.
- Attributes:
- name
str - log_prob, grad
callable() The log-density, up to a constant, and its gradient, for a point of shape
(d,)or a batch of shape(n, d); passvectorize=Truewith batches.- initialobject with
rvs(random_state=...) A default initial distribution, with at least the target’s variance in each coordinate.
- mean, cov
ndarray, shapes (d,) and (d, d) The exact mean and covariance.
ndimintThe dimension
d.- conditional
callable(), optional For
Gibbs,conditional(x, b): the full conditional of blockbgiven the other coordinates ofx.- blocks
listofndarray, optional The blocks of
conditional.
- name