animate_from_emcee¶
- flipbook.animate_from_emcee(model_fn: Callable[[ndarray[tuple[Any, ...], dtype[float64]], ndarray[tuple[Any, ...], dtype[float64]]], ndarray[tuple[Any, ...], dtype[float64]]], t: _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], sampler: object, *, out: str | Path | None = None, **kwargs: Any) FuncAnimation[source]¶
Animate walkers directly from an
emceesampler.- Parameters:
- model_fncallable
Callable implementing
f(theta, t) -> y.- tarray_like
One-dimensional array of time samples.
- samplerobject
emceesampler providingget_chainand optionallyget_log_prob.- outstr or Path, optional
Output filename passed through to
animate_walkers().- **kwargs
Additional keyword arguments forwarded to
animate_walkers().
- Returns:
- matplotlib.animation.FuncAnimation
The generated animation object.
- Raises:
- TypeError
If
samplerdoes not provide the expectedget_chainmethod.