MetricSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)Represents a metric to optimize.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
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.
|
Classes
GoalType
GoalType(value)The available types of optimization goals.
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
Methods
MetricSpec
MetricSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)Represents a metric to optimize.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields