Visualization#
Loss-curve plots and circuit diagrams. Requires the plot extra (pip install "pdft[plot]").
Matplotlib helpers: training-loss plots and circuit schematics.
Optional plot extra. Imported by examples and benchmarks; not depended
on by core. viz.loss plots loss histories; viz.circuit draws the
einsum schematic for a basis.
Contents
Plot a single loss trajectory (optionally smoothed) and return the Figure. |
|
Overlay multiple loss trajectories on one axis. |
|
Write one PNG per history plus a combined comparison plot. |
|
Render a schematic of |
|
Thin wrapper around a loss trajectory for plotting. |
|
Exponential moving average smoother. |