ScoreKind class final
What a score in DeciderAnswer.ranked is.
A class with constant instances rather than an enum, as DeciderMethod
is, so a kind added in a later release does not break an app's
exhaustive switch.
- Annotations
-
- @experimental
- @immutable
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- cosine → const ScoreKind
-
Cosine similarity in
-1, 1(thecentroidmethod). Not a probability. - logprob → const ScoreKind
-
Natural-log probability of the candidate under the decider's own model,
normalised over the candidates, before any calibration: the
linearmethod's log-softmax, andoptionScoring'ss − logsumexp(s)over the candidates, wheresis the model's log-probability of the option's id as its reply. -
values
→ const List<
ScoreKind> - Every kind this release knows, in declaration order.