Skip to content

plotPrecisionRecall

plotPrecisionRecall(yTrue, yProb, options?): any

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

Generate precision-recall curve plot configuration

Parameters

yTrue

number[]

True binary labels (0 or 1)

yProb

number[]

Predicted probabilities for positive class

options?

any = {}

{width, height, showBaseline}

Returns

any

Plot configuration with precision-recall curve and average precision