AbstainSignalKind class final
What DeciderProvenance.abstainSignal is.
For every kind, now and added later, a higher signal means a more
confident answer: a decider abstains with AbstainReason.belowThreshold
when its signal is below the threshold, and chooses only at or above it. A
measure where lower is more confident (a distance, an entropy) is reported
negated or as its own kind with that direction.
A class with constant instances rather than an enum, 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
- topCosine → const AbstainSignalKind
- The input's highest cosine to a candidate's centroid (an embedding decider, either method). Not a probability.
- topProbability → const AbstainSignalKind
- The highest calibrated probability over the candidates (an inference decider calibrated with a temperature).
-
values
→ const List<
AbstainSignalKind> - Every kind this release knows, in declaration order.