Google Cloud Ai Platform V1 Client - Class MetricSpec (0.10.0)

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

Represents a metric to optimize.

Generated from protobuf message google.cloud.aiplatform.v1.StudySpec.MetricSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ metric_id string

Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.

↳ goal int

Required. The optimization goal of the metric.

getMetricId

Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.

Generated from protobuf field string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
string

setMetricId

Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.

Generated from protobuf field string metric_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGoal

Required. The optimization goal of the metric.

Generated from protobuf field .google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

setGoal

Required. The optimization goal of the metric.

Generated from protobuf field .google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType goal = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var int
Returns
TypeDescription
$this