The answer to a TypeSafe.Choice.
choice- the most probable option, with the same key (atom or string) the question usedprobabilities- every option mapped to its probability; they sum to 1confidence- how concentrated the distribution is, from 0 to 1. It is not the probability that the choice is right.
Summary
Functions
The options with their probabilities, most probable first.
Types
@type t() :: %TypeSafe.ChoiceAnswer{ choice: TypeSafe.Choice.option(), confidence: float(), probabilities: %{required(TypeSafe.Choice.option()) => float()} }
Functions
@spec ranked(t()) :: [{TypeSafe.Choice.option(), float()}]
The options with their probabilities, most probable first.