ThresholdOutcome

data class ThresholdOutcome(val threshold: Double, val truePositives: Int, val falsePositives: Int, val trueNegatives: Int, val falseNegatives: Int)

How one threshold performed over the whole set of pairs.

Constructors

Link copied to clipboard
constructor(threshold: Double, truePositives: Int, falsePositives: Int, trueNegatives: Int, falseNegatives: Int)

Properties

Link copied to clipboard
val f1: Double

Harmonic mean of precision and recall.

Link copied to clipboard

Of the pairs that must not match, the fraction served anyway.

Link copied to clipboard

Pairs refused that could have been served — a wasted API call, nothing worse.

Link copied to clipboard

False hits: pairs served a cached answer that does not answer them.

Link copied to clipboard

Of everything served from cache, the fraction that was correct.

Link copied to clipboard

Of everything that could have been served, the fraction that was. Your hit rate ceiling.

Link copied to clipboard
Link copied to clipboard

Pairs correctly refused.

Link copied to clipboard

Pairs correctly served from cache.