Toolnexus.Classifier.ScoreAnswer (toolnexus v0.18.1)

Copy Markdown View Source

A rating against the ordered rubric. :score MAY fall between levels (1.21 is a real answer) and is always within the rubric's bounds.

Summary

Functions

The legend in LEVEL order, which the map itself loses ("2" before "10").

Types

t()

@type t() :: %Toolnexus.Classifier.ScoreAnswer{
  confidence: number(),
  legend: %{required(String.t()) => String.t()},
  probabilities: %{required(String.t()) => number()},
  score: number()
}

Functions

levels(score_answer)

@spec levels(t()) :: [String.t()]

The legend in LEVEL order, which the map itself loses ("2" before "10").