Google Cloud Ai Platform V1 Client - Class Metric (1.60.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ predefined_metric_spec
PredefinedMetricSpec

The spec for a pre-defined metric.

↳ computation_based_metric_spec
ComputationBasedMetricSpec

Spec for a computation based metric.

↳ llm_based_metric_spec
LLMBasedMetricSpec

Spec for an LLM based metric.

↳ pointwise_metric_spec
PointwiseMetricSpec

Spec for pointwise metric.

↳ pairwise_metric_spec
PairwiseMetricSpec

Spec for pairwise metric.

↳ exact_match_spec
ExactMatchSpec

Spec for exact match metric.

↳ bleu_spec
BleuSpec

Spec for bleu metric.

↳ rouge_spec
RougeSpec

Spec for rouge metric.

↳ aggregation_metrics
int[]

Optional. The aggregation metrics to use.

getPredefinedMetricSpec

The spec for a pre-defined metric.

Returns
Type
Description

hasPredefinedMetricSpec

setPredefinedMetricSpec

The spec for a pre-defined metric.

Parameter
Name
Description
Returns
Type
Description
$this

getComputationBasedMetricSpec

Spec for a computation based metric.

Returns
Type
Description

hasComputationBasedMetricSpec

setComputationBasedMetricSpec

Spec for a computation based metric.

Parameter
Name
Description
Returns
Type
Description
$this

getLlmBasedMetricSpec

Spec for an LLM based metric.

Returns
Type
Description

hasLlmBasedMetricSpec

setLlmBasedMetricSpec

Spec for an LLM based metric.

Parameter
Name
Description
Returns
Type
Description
$this

getPointwiseMetricSpec

Spec for pointwise metric.

Returns
Type
Description

hasPointwiseMetricSpec

setPointwiseMetricSpec

Spec for pointwise metric.

Parameter
Name
Description
Returns
Type
Description
$this

getPairwiseMetricSpec

Spec for pairwise metric.

Returns
Type
Description

hasPairwiseMetricSpec

setPairwiseMetricSpec

Spec for pairwise metric.

Parameter
Name
Description
Returns
Type
Description
$this

getExactMatchSpec

Spec for exact match metric.

Returns
Type
Description

hasExactMatchSpec

setExactMatchSpec

Spec for exact match metric.

Parameter
Name
Description
Returns
Type
Description
$this

getBleuSpec

Spec for bleu metric.

Returns
Type
Description
BleuSpec |null

hasBleuSpec

setBleuSpec

Spec for bleu metric.

Parameter
Name
Description
var
Returns
Type
Description
$this

getRougeSpec

Spec for rouge metric.

Returns
Type
Description
RougeSpec |null

hasRougeSpec

setRougeSpec

Spec for rouge metric.

Parameter
Name
Description
var
Returns
Type
Description
$this

getAggregationMetrics

Optional. The aggregation metrics to use.

Returns
Type
Description

setAggregationMetrics

Optional. The aggregation metrics to use.

Parameter
Name
Description
var
int[]
Returns
Type
Description
$this

getMetricSpec

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: