viz.renderers.ConfusionMatrixOptions
export interface ConfusionMatrixOptions {
/** Class labels for axes */
labels?: string[];
/** Normalization mode (default: 'none') */
normalize?: NormalizationMode;
/** Highlight diagonal (correct predictions) differently (default: true) */
highlightDiagonal?: boolean;
/** Gap between cells in pixels (default: 2) */
cellGap?: number;
/** Show value labels in cells (default: true for small matrices) */
showValues?: boolean;
/** Chart width */
width?: number;
/** Chart height */
height?: number;
/** Chart title */
title?: string;
/** X-axis label (default: 'Predicted') */
xLabel?: string;
/** Y-axis label (default: 'Actual') */
yLabel?: string;
/** Padding */
padding?: { left?: number; right?: number; top?: number; bottom?: number };
/** Target to render to */
target?: RenderTarget;
}labels(string[])optional- – Class labels for axes
normalize(NormalizationMode)optional- – Normalization mode (default: 'none')
highlightDiagonal(boolean)optional- – Highlight diagonal (correct predictions) differently (default: true)
cellGap(number)optional- – Gap between cells in pixels (default: 2)
showValues(boolean)optional- – Show value labels in cells (default: true for small matrices)
width(number)optional- – Chart width
height(number)optional- – Chart height
title(string)optional- – Chart title
xLabel(string)optional- – X-axis label (default: 'Predicted')
yLabel(string)optional- – Y-axis label (default: 'Actual')
padding({ left?: number; right?: number; top?: number; bottom?: number })optional- – Padding
target(RenderTarget)optional- – Target to render to