CorpusScore

class CorpusScore(val corpus: String, val nearMisses: Int, val paraphrases: Int, val caught: Int, val falseRejections: Int, val directionDisagreements: Int)

One guard's confusion matrix on one corpus.

The two numbers that matter are caught and falseRejections, and neither means anything without the other. A guard that catches everything by rejecting everything has turned a cache into an expensive proxy; a guard that never falsely rejects because it never fires does nothing while looking like it does something. Read them as a pair, always.

Constructors

Link copied to clipboard
constructor(corpus: String, nearMisses: Int, paraphrases: Int, caught: Int, falseRejections: Int, directionDisagreements: Int)

Properties

Link copied to clipboard

Share of near misses rejected, in [0.0, 1.0]. 0.0 when the corpus has none.

Link copied to clipboard

catchRate with the range the corpus supports.

Link copied to clipboard
val caught: Int

Near misses this guard rejected: wrong answers it would have stopped.

Link copied to clipboard

The corpus these numbers came from.

Link copied to clipboard

Pairs where the guard's verdict depends on which prompt arrived first.

Link copied to clipboard

Share of paraphrases wrongly rejected, in [0.0, 1.0]. 0.0 when the corpus has none.

Link copied to clipboard

falseRejectionRate with the range the corpus supports.

Link copied to clipboard

Paraphrases this guard rejected: real hits it would have cost, one API call each.

Link copied to clipboard

Pairs whose answers must differ.

Link copied to clipboard

Pairs whose answers may be shared.

Functions

Link copied to clipboard
open override fun toString(): String