Metric class final
The metric used for dataset level evaluation.
- Inheritance
-
- Object
- ProtoMessage
- Metric
Constructors
-
Metric({PointwiseMetricSpec? pointwiseMetricSpec, PairwiseMetricSpec? pairwiseMetricSpec, ExactMatchSpec? exactMatchSpec, BleuSpec? bleuSpec, RougeSpec? rougeSpec, List<
Metric_AggregationMetric> aggregationMetrics = const []}) - Metric.fromJson(Object? j)
-
factory
Properties
-
aggregationMetrics
→ List<
Metric_AggregationMetric> -
Optional. The aggregation metrics to use.
final
- bleuSpec → BleuSpec?
-
Spec for bleu metric.
final
- exactMatchSpec → ExactMatchSpec?
-
Spec for exact match metric.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pairwiseMetricSpec → PairwiseMetricSpec?
-
Spec for pairwise metric.
final
- pointwiseMetricSpec → PointwiseMetricSpec?
-
Spec for pointwise metric.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - rougeSpec → RougeSpec?
-
Spec for rouge metric.
final
- 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
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String