TrialResult class

All artifacts produced by one trial.

Constructors

TrialResult({required Trial trial, required Transcript transcript, required Outcome outcome, required List<Score> scores})
const

Properties

allGradersPassed → bool
True when this trial counts as a metric pass: execution completed (TrialStatus.passed or TrialStatus.failed) and every non-null score reports passed=true.
no setter
hashCode → int
The hash code for this object.
no setterinherited
meanScoreValue → double?
Mean of non-null score values. Returns null if all scores are null.
no setter
outcome → Outcome
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scores → List<Score>
final
transcript → Transcript
final
trial → Trial
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

scoresIndicatePass(Iterable<Score> scores) → bool
Whether the scores alone indicate a pass, independent of trial status. Ignores passed == null; no decided scores means not passed.