Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Metric.
The metric used for running evaluations.
Generated from protobuf message google.cloud.aiplatform.v1.Metric
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ predefined_metric_spec
↳ computation_based_metric_spec
↳ llm_based_metric_spec
↳ pointwise_metric_spec
↳ pairwise_metric_spec
↳ exact_match_spec
↳ bleu_spec
↳ rouge_spec
↳ aggregation_metrics
int[]
Optional. The aggregation metrics to use.
getPredefinedMetricSpec
The spec for a pre-defined metric.
hasPredefinedMetricSpec
setPredefinedMetricSpec
The spec for a pre-defined metric.
$this
getComputationBasedMetricSpec
Spec for a computation based metric.
hasComputationBasedMetricSpec
setComputationBasedMetricSpec
Spec for a computation based metric.
$this
getLlmBasedMetricSpec
Spec for an LLM based metric.
hasLlmBasedMetricSpec
setLlmBasedMetricSpec
Spec for an LLM based metric.
$this
getPointwiseMetricSpec
Spec for pointwise metric.
hasPointwiseMetricSpec
setPointwiseMetricSpec
Spec for pointwise metric.
$this
getPairwiseMetricSpec
Spec for pairwise metric.
hasPairwiseMetricSpec
setPairwiseMetricSpec
Spec for pairwise metric.
$this
getExactMatchSpec
Spec for exact match metric.
hasExactMatchSpec
setExactMatchSpec
Spec for exact match metric.
$this
getBleuSpec
Spec for bleu metric.
hasBleuSpec
setBleuSpec
Spec for bleu metric.
$this
getRougeSpec
Spec for rouge metric.
hasRougeSpec
setRougeSpec
Spec for rouge metric.
$this
getAggregationMetrics
Optional. The aggregation metrics to use.
setAggregationMetrics
Optional. The aggregation metrics to use.
var
int[]
$this
getMetricSpec
string

