Google Cloud Ai Platform V1 Client - Class MetricxSpec (1.13.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class MetricxSpec.

Spec for MetricX metric.

Generated from protobuf message google.cloud.aiplatform.v1.MetricxSpec

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ version int

Required. Which version to use for evaluation.

↳ source_language string

Optional. Source language in BCP-47 format.

↳ target_language string

Optional. Target language in BCP-47 format. Covers both prediction and reference.

getVersion

Required. Which version to use for evaluation.

Returns
Type Description
int

hasVersion

clearVersion

setVersion

Required. Which version to use for evaluation.

Parameter
Name Description
var int
Returns
Type Description
$this

getSourceLanguage

Optional. Source language in BCP-47 format.

Returns
Type Description
string

setSourceLanguage

Optional. Source language in BCP-47 format.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetLanguage

Optional. Target language in BCP-47 format. Covers both prediction and reference.

Returns
Type Description
string

setTargetLanguage

Optional. Target language in BCP-47 format. Covers both prediction and reference.

Parameter
Name Description
var string
Returns
Type Description
$this