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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ metric_id |
string
Required. The ID of the metric. Must not contain whitespaces. |
↳ goal |
int
Required. The optimization goal of the metric. |
getMetricId
Required. The ID of the metric. Must not contain whitespaces.
Returns | |
---|---|
Type | Description |
string |
setMetricId
Required. The ID of the metric. Must not contain whitespaces.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getGoal
Required. The optimization goal of the metric.
Returns | |
---|---|
Type | Description |
int |
setGoal
Required. The optimization goal of the metric.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |