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 k parameter (pass_at_k, pass_hat_k); bind k with withK before calling compute.
final
custom → bool
true when loaded from MultiRunConfig.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
true for score-combining methods (default), false for 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 k bound into compute and name formatted for display.

Operators

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