The answer to a TypeSafe.Score.
score- the probability-weighted level index; with four levels it lies between 0 and 3 and can fall between levelslegend- each level index mapped to the description the question gave itprobabilities- each level index mapped to its probabilityconfidence- how concentrated the distribution is, from 0 to 1
Use score to compare against thresholds, not to recover an exact quantity
between two levels.
Summary
Functions
The index of the most probable level.
The score scaled to 0..1, where 0 is the first level and 1 the last.
Types
@type t() :: %TypeSafe.ScoreAnswer{ confidence: float(), legend: %{required(non_neg_integer()) => TypeSafe.json()}, probabilities: %{required(non_neg_integer()) => float()}, score: float() }
Functions
@spec level(t()) :: non_neg_integer()
The index of the most probable level.
The score scaled to 0..1, where 0 is the first level and 1 the last.