ggml_ot.pl.confusion_matrix#
- ggml_ot.pl.confusion_matrix(predicted, true, *, title=None, ax=None, show=None, save=None)[source]#
Plot a confusion-matrix heatmap.
- Parameters:
- predicted array-like
Predicted labels.
- true array-like
Ground-truth labels.
- title str or None, default None
Plot title.
- ax matplotlib.axes.Axes or None, default None
Axes to draw on. A new figure is created when
None.- show bool or None, default None
Whether to display the plot.
None(default) automatically shows in interactive environments (notebooks, IPython) and suppresses in scripts.True/Falseoverride explicitly.- save str, bool, or None, default None
Whether to save the figure to disk.
None/Falseskip saving.Truesaves tosettings.figdir/confusion_matrix.<figformat>; a str overrides the filename.
- Returns:
matplotlib.axes.Axes The axes containing the heatmap.