Class MetricSpec (1.22.1)

MetricSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a metric to optimize.

Attributes

NameDescription
metric_id str
Required. The ID of the metric. Must not contain whitespaces.
goal google.cloud.aiplatform_v1beta1.types.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType
Required. The optimization goal of the metric.

Inheritance

builtins.object > proto.message.Message > MetricSpec

Classes

GoalType

GoalType(value)

The available types of optimization goals.

Values: GOAL_TYPE_UNSPECIFIED (0): Goal Type will default to maximize. MAXIMIZE (1): Maximize the goal metric. MINIMIZE (2): Minimize the goal metric.