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 emcee sampler.

Parameters:
model_fncallable

Callable implementing f(theta, t) -> y.

tarray_like

One-dimensional array of time samples.

samplerobject

emcee sampler providing get_chain and optionally get_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 sampler does not provide the expected get_chain method.