Class Metric (1.122.0)

Metric(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The metric used for dataset level evaluation.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
pointwise_metric_spec google.cloud.aiplatform_v1beta1.types.PointwiseMetricSpec
Spec for pointwise metric. This field is a member of oneof_ metric_spec.
pairwise_metric_spec google.cloud.aiplatform_v1beta1.types.PairwiseMetricSpec
Spec for pairwise metric. This field is a member of oneof_ metric_spec.
exact_match_spec google.cloud.aiplatform_v1beta1.types.ExactMatchSpec
Spec for exact match metric. This field is a member of oneof_ metric_spec.
bleu_spec google.cloud.aiplatform_v1beta1.types.BleuSpec
Spec for bleu metric. This field is a member of oneof_ metric_spec.
rouge_spec google.cloud.aiplatform_v1beta1.types.RougeSpec
Spec for rouge metric. This field is a member of oneof_ metric_spec.
aggregation_metrics MutableSequence[google.cloud.aiplatform_v1beta1.types.Metric.AggregationMetric]
Optional. The aggregation metrics to use.

Classes

AggregationMetric

AggregationMetric(value)

The aggregation metrics supported by EvaluationService.EvaluateDataset.

Methods

Metric

Metric(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The metric used for dataset level evaluation.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields