xlnstorch.viz.plot_precision_comparison

xlnstorch.viz.plot_precision_comparison#

xlnstorch.viz.plot_precision_comparison(results, *, ax=None, metric='max_error', log_scale=True)#

Plot how error metrics change with precision level.

Parameters:
  • results (Dict[int, Dict]) – Results from precision_sweep_analysis.

  • ax (matplotlib.axes.Axes, optional) – Axes to plot on.

  • metric (str) – Which error metric to plot (‘max_error’, ‘mean_error’, etc.)

  • log_scale (bool) – Whether to use log scale for y-axis.

Returns:

The axes containing the plot.

Return type:

matplotlib.axes.Axes

Raises:

ImportError – If matplotlib is not installed, an ImportError is raised.