Google Cloud Ai Platform V1 Client - Class PredefinedMetricSpec (1.57.0)

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

The spec for a pre-defined metric.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_spec_name string

Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1".

↳ metric_spec_parameters Google\Protobuf\Struct

Optional. The parameters needed to run the pre-defined metric.

getMetricSpecName

Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1".

Returns
Type Description
string

setMetricSpecName

Required. The name of a pre-defined metric, such as "instruction_following_v1" or "text_quality_v1".

Parameter
Name Description
var string
Returns
Type Description
$this

getMetricSpecParameters

Optional. The parameters needed to run the pre-defined metric.

Returns
Type Description
Google\Protobuf\Struct|null

hasMetricSpecParameters

clearMetricSpecParameters

setMetricSpecParameters

Optional. The parameters needed to run the pre-defined metric.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this