OutputDecoder class
Decodes model output probabilities into predictions.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
argmax(
List< double> values) → int - Returns the index of the highest value in a list (argmax).
-
isConfident(
List< double> probabilities, double threshold) → bool - Whether the top prediction exceeds a confidence threshold.
-
softmax(
List< double> logits) → List<double> - Applies softmax to raw logits.
-
topK(
List< double> values, int k) → List<int> - Returns the top-k indices sorted by descending probability.