MAIDR JavaScript API
    Preparing search index...

    Configuration for precision-recall curves. Optional when chartType is 'pr_curve'.

    A precision-recall curve is drawn as an ordinary <Line>, so everything a reader needs beyond the rates is the author's: which column holds each point's threshold, and the share of positives and the average precision of each curve. Every array is one entry per yKeys entry, in the same order; an entry describes that curve only, and a curve given none says none.

    interface PrCurveConfig {
        thresholdKeys?: string[];
        prevalence?: (number | undefined)[];
        ap?: (number | undefined)[];
    }
    Index

    Properties

    thresholdKeys?: string[]

    Keys holding the decision threshold each point was scored at, one per curve.

    prevalence?: (number | undefined)[]

    The share of positives each curve was scored on, as a fraction from 0 to 1 -- the height of its chance baseline. Never inferred; a percentage is refused with a warning rather than rescaled.

    ap?: (number | undefined)[]

    Each curve's average precision as the producer computed it, from 0 to 1.