Skip to content

plotConfusionMatrix

plotConfusionMatrix(yTrue, yPred, options?): any

Defined in: ds/src/plot/classification.js:230

Generate confusion matrix plot configuration

Parameters

yTrue

any[]

True labels

yPred

any[]

Predicted labels

options?

any = {}

{width, height, normalize, labels}

Returns

any

Plot configuration with confusion matrix