RunSummary class

Constructors

RunSummary({num? avgScore, String? dataset, int? items, String? judgeModel, String? model, List<ItemResult> results = const [], String? runName, int? scored})
Returns a new RunSummary instance.

Properties

avgScore ↔ num?
AvgScore is the mean over the scored examples, 0 when none scored.
getter/setter pair
dataset ↔ String?
Dataset is the set that was scored.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
items ↔ int?
Items is how many examples the run attempted.
getter/setter pair
judgeModel ↔ String?
JudgeModel is the model that graded.
getter/setter pair
model ↔ String?
Model is the model under test.
getter/setter pair
results ↔ List<ItemResult>
Results is one row per attempted example.
getter/setter pair
runName ↔ String?
RunName is the run's label, which scores and traces are filed under.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scored ↔ int?
Scored is how many produced a real score. It counts successes only, so a partial run is honest about what it achieved.
getter/setter pair

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.
override

Operators

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

Static Methods

fromJson(dynamic value) → RunSummary?
Returns a new RunSummary instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RunSummary>
mapFromJson(dynamic json) → Map<String, RunSummary>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RunSummary>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.