Skip to content

Function: addConfusionMatrix()

ts
function addConfusionMatrix(plot, opts): ConfusionMatrixHandle;

Defined in: ml/charts.ts:46

Confusion matrix as a heatmap with the true class 0 at the top (sklearn orientation) and per-cell value labels. Give the Plot [0,classes] axes; set categorical ticks for class names.

Parameters

ParameterType
plotPlot
optsConfusionMatrixOptions

Returns

ConfusionMatrixHandle

MIT licensed. WebGL2 required.