pytyche.viz.experiment_evolution_gif¶
- pytyche.viz.experiment_evolution_gif(history, output_path, fps=0.2)[source]¶
Render the round-by-round experiment evolution to an animated GIF.
Each frame shows the round’s cell allocation, plus the round’s policy tree when one was fit.
- Parameters:
history (
Sequence[Any]) – Per-round experiment snapshots — the shipped L1Experimentshape, consumed duck-typed:cells_shipped(the cell listplot_cellsaccepts) andnext_recommendationcarrying the round’s fittedtree(Noneon a plan with no fit, e.g. real-data cold starts).output_path (
str|Path) – Destination.gifpath.fps (
float) – Frames (rounds) per second. Rounds are dense (a full policy tree per frame); the default holds each for five seconds.
- Return type:
Path- Returns:
output_pathas aPath.- Raises:
ValueError – When history is empty.