AggregationMethod class
Descriptor for a cross-run aggregation method.
Constructors
- AggregationMethod({required String name, required AggregationMethodFn compute, bool usesScores = true, bool custom = false, AggregationMethodWithKFn? computeWithK})
-
Creates an aggregation method descriptor.
const
Properties
- compute → AggregationMethodFn
-
Function that computes the aggregated value from per-run results.
final
- computeWithK → AggregationMethodWithKFn?
-
If non-null, this method takes a
kparameter (pass_at_k,pass_hat_k); bindkwith withK before calling compute.final - custom → bool
-
truewhen loaded fromMultiRunConfig.customMethods.final - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Canonical method name (for example
'mean_over_invocations'or'pass_rate').final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usesScores → bool
-
truefor score-combining methods (default),falsefor pass-count methods.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withK(
int k) → AggregationMethod -
Returns a copy with
kbound into compute and name formatted for display.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited