Metrics

object Metrics(source)

Fixed-point metrics in millionths, identical on every target.

Properties

Link copied to clipboard
const val MICRO: Long

Functions

Link copied to clipboard
fun brier(forecasts: List<Pair<Long, Boolean>>): Long

Mean squared error of (confidence in micro, was it right) pairs, in micro.

Link copied to clipboard
fun divRound(a: Long, b: Long): Long
Link copied to clipboard

A CONFIRMED verdict naming anything but the true cause; any CONFIRMED on a control.

Link copied to clipboard
fun mrr(ranks: List<Int?>): Long

Mean reciprocal rank; an absent cause counts as zero.

Link copied to clipboard
fun rank(truth: Truth, d: Diagnosis): Int?

1-based rank of the true cause, null when absent or when the scenario is a control.

Link copied to clipboard
fun topK(ranks: List<Int?>, k: Int): Rate
Link copied to clipboard
fun wilson(count: Int, total: Int): Interval

Wilson score interval at 95 percent, as millionths.