Class MetricSpec (1.26.1)

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

Attributes

NameDescription
metric_id str
Required. The ID of the metric. Must not contain whitespaces and must be unique amongst all MetricSpecs.
goal google.cloud.aiplatform_v1.types.StudySpec.MetricSpec.GoalType
Required. The optimization goal of the metric.
safety_config google.cloud.aiplatform_v1.types.StudySpec.MetricSpec.SafetyMetricConfig
Used for safe search. In the case, the metric will be a safety metric. You must provide a separate metric for objective metric. This field is a member of oneof_ _safety_config.

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.

SafetyMetricConfig

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

Used in safe optimization to specify threshold levels and risk tolerance.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields