Resource: Trial
A message representing a Trial. A Trial contains a unique set of Parameters that has been or will be evaluated, along with the objective metrics got by running the Trial.
name
string
Output only. Resource name of the Trial assigned by the service.
id
string
Output only. The identifier of the Trial assigned by the service.
Output only. The detailed state of the Trial.
Output only. The parameters of the Trial.
Output only. The final measurement containing the objective value.
Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsedDuration). These are used for early stopping computations.
Output only. time when the Trial was started.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z"
and "2014-10-02T15:01:23.045123456Z"
.
Output only. time when the Trial's status changed to SUCCEEDED
or INFEASIBLE
.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z"
and "2014-10-02T15:01:23.045123456Z"
.
clientId
string
Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique clientId. When a client asks for a suggestion, Vertex AI Vizier will assign it a Trial. The client should evaluate the Trial, complete it, and report back to Vertex AI Vizier. If suggestion is asked again by same clientId before the Trial is completed, the same Trial will be returned. Multiple clients with different client_ids can ask for suggestions simultaneously, each of them will get their own Trial.
infeasibleReason
string
Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is INFEASIBLE
.
customJob
string
Output only. The CustomJob name linked to the Trial. It's set for a HyperparameterTuningJob's Trial.
webAccessUris
map (key: string, value: string)
Output only. URIs for accessing interactive shells (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob
and the job's trialJobSpec.enable_web_access
field is true
.
The keys are names of each node used for the trial; for example, workerpool0-0
for the primary node, workerpool1-0
for the first node in the second worker pool, and workerpool1-1
for the second node in the second worker pool.
The values are the URIs for each node's interactive shell.
JSON representation |
---|
{ "name": string, "id": string, "state": enum ( |
State
Describes a Trial state.
Enums | |
---|---|
STATE_UNSPECIFIED |
The Trial state is unspecified. |
REQUESTED |
Indicates that a specific Trial has been requested, but it has not yet been suggested by the service. |
ACTIVE |
Indicates that the Trial has been suggested. |
STOPPING |
Indicates that the Trial should stop according to the service. |
SUCCEEDED |
Indicates that the Trial is completed successfully. |
INFEASIBLE |
Indicates that the Trial should not be attempted again. The service will set a Trial to INFEASIBLE when it's done but missing the finalMeasurement. |
Parameter
A message representing a parameter to be tuned.
parameterId
string
Output only. The id of the parameter. The parameter should be defined in StudySpec's Parameters
.
Output only. The value of the parameter. numberValue
will be set if a parameter defined in StudySpec is in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. stringValue
will be set if a parameter defined in StudySpec is in type 'CATEGORICAL'.
JSON representation |
---|
{ "parameterId": string, "value": value } |
Measurement
A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
Output only. time that the Trial has been running at the point of this Measurement.
A duration in seconds with up to nine fractional digits, ending with 's
'. Example: "3.5s"
.
Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
JSON representation |
---|
{
"elapsedDuration": string,
"stepCount": string,
"metrics": [
{
object ( |
Metric
A message representing a metric in the measurement.
metricId
string
Output only. The id of the Metric. The Metric should be defined in StudySpec's Metrics
.
value
number
Output only. The value for this metric.
JSON representation |
---|
{ "metricId": string, "value": number } |
Methods |
|
---|---|
|
Adds a measurement of the objective metrics to a Trial. |
|
Checks whether a Trial should stop or not. |
|
Marks a Trial as complete. |
|
Adds a user provided Trial to a Study. |
|
Deletes a Trial. |
|
Gets a Trial. |
|
Lists the Trials associated with a Study. |
|
Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for single-objective Study. |
|
Stops a Trial. |
|
Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. |