TypeSafe.Answer.Score (TypeSafe v0.2.2)

Copy Markdown View Source

A score answer.

  • :score — the probability-weighted expected score; may fall between integer levels.
  • :confidence — confidence in the score, from 0 to 1.
  • :legend — rubric descriptions keyed by integer score level.
  • :probabilities — probability of each score level, keyed by integer level.

Summary

Types

t()

@type t() :: %TypeSafe.Answer.Score{
  confidence: float(),
  legend: %{optional(integer()) => TypeSafe.Question.content()},
  probabilities: %{optional(integer()) => float()},
  score: float(),
  type: String.t()
}