Answered

class Answered constructor(val provenance: ModelProvenance, val selectedLevelId: String? = null, distribution: List<LevelProbability> = emptyList(), val score: RatingScore? = null, val confidence: Double? = null) : RatingResult

A rating the provider answered with at least one piece of evidence: a selected level id, a distribution over levels, a score, or a combination of these. Confidence is the provider's own measure of how concentrated its reported distribution is. It is absent unless the provider actually reports it.

Constructors

Link copied to clipboard
constructor(provenance: ModelProvenance, selectedLevelId: String? = null, distribution: List<LevelProbability> = emptyList(), score: RatingScore? = null, confidence: Double? = null)

Properties

Link copied to clipboard
val confidence: Double? = null

the provider's concentration measure, in 0..1, when reported

Link copied to clipboard

The per-level probabilities the provider reported, in the order given. The list is an unmodifiable copy, so changes to the list the caller passed in do not appear here. JSON leaves out an empty distribution.

Link copied to clipboard

the model that answered

Link copied to clipboard
val score: RatingScore? = null

the provider's score and the statistic it represents, when reported

Link copied to clipboard
val selectedLevelId: String? = null

the level the provider selected, when it selects one

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String