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

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Stable name: cosine, logprob.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 (the centroid method). 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 linear method's log-softmax, and optionScoring's s − logsumexp(s) over the candidates, where s is 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.