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

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

A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.

Generated from protobuf message google.cloud.aiplatform.v1.Measurement

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ elapsed_duration Google\Protobuf\Duration

Output only. Time that the Trial has been running at the point of this Measurement.

↳ step_count int|string

Output only. The number of steps the machine learning model has been trained for. Must be non-negative.

↳ metrics array<Google\Cloud\AIPlatform\V1\Measurement\Metric>

Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.

getElapsedDuration

Output only. Time that the Trial has been running at the point of this Measurement.

Generated from protobuf field .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Duration|null

hasElapsedDuration

clearElapsedDuration

setElapsedDuration

Output only. Time that the Trial has been running at the point of this Measurement.

Generated from protobuf field .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getStepCount

Output only. The number of steps the machine learning model has been trained for.

Must be non-negative.

Generated from protobuf field int64 step_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int|string

setStepCount

Output only. The number of steps the machine learning model has been trained for.

Must be non-negative.

Generated from protobuf field int64 step_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getMetrics

Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.

Generated from protobuf field repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMetrics

Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.

Generated from protobuf field repeated .google.cloud.aiplatform.v1.Measurement.Metric metrics = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var array<Google\Cloud\AIPlatform\V1\Measurement\Metric>
Returns
TypeDescription
$this