Evaluate

Properties

Link copied to clipboard
const val BINS: Int = 5
Link copied to clipboard

Functions

Link copied to clipboard
fun brier(preds: List<Pred>): Long
Link copied to clipboard
fun brierCovered(preds: List<Pred>): Long

Brier over the rankings the product prints a probability for.

Link copied to clipboard
fun crossValidated(obs: List<Observed>, model: Model, k: Int = Folds.K): List<Pred>
Link copied to clipboard

Candidates as entries without a probability, for checks that need no model.

Link copied to clipboard
fun gates(entries: List<Entry>): JsonObject

honesty plus how often the tiers named the injected cause.

Link copied to clipboard
fun honesty(entries: List<Entry>): JsonObject

What known and plausible rest on; needs no label, so it holds for any pair.

Link copied to clipboard
fun inSample(obs: List<Observed>, model: Model): List<Pred>
Link copied to clipboard
fun metrics(preds: List<Pred>, tiered: Boolean): JsonObject
Link copied to clipboard
Link copied to clipboard
fun mrr(preds: List<Pred>): Long
Link copied to clipboard

Out-of-fold Brier of the shipped readout as the probe ratio varies, over the rankings that carry a probe and over all of them, next to the uniform 1/n readout on the same rankings.

Link copied to clipboard
fun tail(p: List<Long>, k: Int): Long

The chance, in micro-units, of at least k hits when scenario i hits with probability p[i] (micro-units); the exact Poisson-binomial tail.

Link copied to clipboard

The shipped order against a random order of the same candidates: hits, the hits a random order is expected to make, and the chance that a random order makes at least as many.