Debian Codegraph @

docs/dyn/aiplatform_v1.projects.locations.studies.trials.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="aiplatform_v1.html">Agent Platform API</a> . <a href="aiplatform_v1.projects.html">projects</a> . <a href="aiplatform_v1.projects.locations.html">locations</a> . <a href="aiplatform_v1.projects.locations.studies.html">studies</a> . <a href="aiplatform_v1.projects.locations.studies.trials.html">trials</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="aiplatform_v1.projects.locations.studies.trials.operations.html">operations()</a></code>
79 </p>
80 <p class="firstline">Returns the operations Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#addTrialMeasurement">addTrialMeasurement(trialName, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been taken before the Trial is complete.</p>
85 <p class="toc_element">
86 <code><a href="#checkTrialEarlyStoppingState">checkTrialEarlyStoppingState(trialName, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a CheckTrialEarlyStoppingStateResponse.</p>
88 <p class="toc_element">
89 <code><a href="#close">close()</a></code></p>
90 <p class="firstline">Close httplib2 connections.</p>
91 <p class="toc_element">
92 <code><a href="#complete">complete(name, body=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Marks a Trial as complete.</p>
94 <p class="toc_element">
95 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Adds a user provided Trial to a Study.</p>
97 <p class="toc_element">
98 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
99 <p class="firstline">Deletes a Trial.</p>
100 <p class="toc_element">
101 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
102 <p class="firstline">Gets a Trial.</p>
103 <p class="toc_element">
104 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Lists the Trials associated with a Study.</p>
106 <p class="toc_element">
107 <code><a href="#listOptimalTrials">listOptimalTrials(parent, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for single-objective Study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency</p>
109 <p class="toc_element">
110 <code><a href="#list_next">list_next()</a></code></p>
111 <p class="firstline">Retrieves the next page of results.</p>
112 <p class="toc_element">
113 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Stops a Trial.</p>
115 <p class="toc_element">
116 <code><a href="#suggest">suggest(parent, body=None, x__xgafv=None)</a></code></p>
117 <p class="firstline">Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns a long-running operation associated with the generation of Trial suggestions. When this long-running operation succeeds, it will contain a SuggestTrialsResponse.</p>
118 <h3>Method Details</h3>
119 <div class="method">
120 <code class="details" id="addTrialMeasurement">addTrialMeasurement(trialName, body=None, x__xgafv=None)</code>
121 <pre>Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been taken before the Trial is complete.
122
123 Args:
124 trialName: string, Required. The name of the trial to add measurement. Format: `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` (required)
125 body: object, The request body.
126 The object takes the form of:
127
128 { # Request message for VizierService.AddTrialMeasurement.
129 &quot;measurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Required. The measurement to be added to a Trial.
130 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
131 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
132 { # A message representing a metric in the measurement.
133 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
134 &quot;value&quot;: 3.14, # Output only. The value for this metric.
135 },
136 ],
137 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
138 },
139 }
140
141 x__xgafv: string, V1 error format.
142 Allowed values
143 1 - v1 error format
144 2 - v2 error format
145
146 Returns:
147 An object of the form:
148
149 { # 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.
150 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
151 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
152 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
153 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
154 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
155 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
156 { # A message representing a metric in the measurement.
157 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
158 &quot;value&quot;: 3.14, # Output only. The value for this metric.
159 },
160 ],
161 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
162 },
163 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
164 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
165 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
166 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
167 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
168 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
169 { # A message representing a metric in the measurement.
170 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
171 &quot;value&quot;: 3.14, # Output only. The value for this metric.
172 },
173 ],
174 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
175 },
176 ],
177 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
178 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
179 { # A message representing a parameter to be tuned.
180 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
181 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
182 },
183 ],
184 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
185 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
186 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
187 &quot;a_key&quot;: &quot;A String&quot;,
188 },
189 }</pre>
190 </div>
191
192 <div class="method">
193 <code class="details" id="checkTrialEarlyStoppingState">checkTrialEarlyStoppingState(trialName, body=None, x__xgafv=None)</code>
194 <pre>Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a CheckTrialEarlyStoppingStateResponse.
195
196 Args:
197 trialName: string, Required. The Trial&#x27;s name. Format: `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` (required)
198 body: object, The request body.
199 The object takes the form of:
200
201 { # Request message for VizierService.CheckTrialEarlyStoppingState.
202 }
203
204 x__xgafv: string, V1 error format.
205 Allowed values
206 1 - v1 error format
207 2 - v2 error format
208
209 Returns:
210 An object of the form:
211
212 { # This resource represents a long-running operation that is the result of a network API call.
213 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
214 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
215 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
216 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
217 {
218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
219 },
220 ],
221 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
222 },
223 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
224 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
225 },
226 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
227 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
229 },
230 }</pre>
231 </div>
232
233 <div class="method">
234 <code class="details" id="close">close()</code>
235 <pre>Close httplib2 connections.</pre>
236 </div>
237
238 <div class="method">
239 <code class="details" id="complete">complete(name, body=None, x__xgafv=None)</code>
240 <pre>Marks a Trial as complete.
241
242 Args:
243 name: string, Required. The Trial&#x27;s name. Format: `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` (required)
244 body: object, The request body.
245 The object takes the form of:
246
247 { # Request message for VizierService.CompleteTrial.
248 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Optional. If provided, it will be used as the completed Trial&#x27;s final_measurement; Otherwise, the service will auto-select a previously reported measurement as the final-measurement
249 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
250 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
251 { # A message representing a metric in the measurement.
252 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
253 &quot;value&quot;: 3.14, # Output only. The value for this metric.
254 },
255 ],
256 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
257 },
258 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Optional. A human readable reason why the trial was infeasible. This should only be provided if `trial_infeasible` is true.
259 &quot;trialInfeasible&quot;: True or False, # Optional. True if the Trial cannot be run with the given Parameter, and final_measurement will be ignored.
260 }
261
262 x__xgafv: string, V1 error format.
263 Allowed values
264 1 - v1 error format
265 2 - v2 error format
266
267 Returns:
268 An object of the form:
269
270 { # 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.
271 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
272 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
273 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
274 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
275 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
276 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
277 { # A message representing a metric in the measurement.
278 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
279 &quot;value&quot;: 3.14, # Output only. The value for this metric.
280 },
281 ],
282 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
283 },
284 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
285 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
286 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
287 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
288 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
289 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
290 { # A message representing a metric in the measurement.
291 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
292 &quot;value&quot;: 3.14, # Output only. The value for this metric.
293 },
294 ],
295 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
296 },
297 ],
298 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
299 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
300 { # A message representing a parameter to be tuned.
301 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
302 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
303 },
304 ],
305 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
306 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
307 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
308 &quot;a_key&quot;: &quot;A String&quot;,
309 },
310 }</pre>
311 </div>
312
313 <div class="method">
314 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
315 <pre>Adds a user provided Trial to a Study.
316
317 Args:
318 parent: string, Required. The resource name of the Study to create the Trial in. Format: `projects/{project}/locations/{location}/studies/{study}` (required)
319 body: object, The request body.
320 The object takes the form of:
321
322 { # 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.
323 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
324 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
325 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
326 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
327 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
328 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
329 { # A message representing a metric in the measurement.
330 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
331 &quot;value&quot;: 3.14, # Output only. The value for this metric.
332 },
333 ],
334 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
335 },
336 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
337 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
338 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
339 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
340 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
341 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
342 { # A message representing a metric in the measurement.
343 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
344 &quot;value&quot;: 3.14, # Output only. The value for this metric.
345 },
346 ],
347 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
348 },
349 ],
350 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
351 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
352 { # A message representing a parameter to be tuned.
353 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
354 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
355 },
356 ],
357 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
358 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
359 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
360 &quot;a_key&quot;: &quot;A String&quot;,
361 },
362 }
363
364 x__xgafv: string, V1 error format.
365 Allowed values
366 1 - v1 error format
367 2 - v2 error format
368
369 Returns:
370 An object of the form:
371
372 { # 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.
373 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
374 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
375 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
376 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
377 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
378 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
379 { # A message representing a metric in the measurement.
380 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
381 &quot;value&quot;: 3.14, # Output only. The value for this metric.
382 },
383 ],
384 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
385 },
386 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
387 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
388 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
389 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
390 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
391 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
392 { # A message representing a metric in the measurement.
393 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
394 &quot;value&quot;: 3.14, # Output only. The value for this metric.
395 },
396 ],
397 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
398 },
399 ],
400 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
401 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
402 { # A message representing a parameter to be tuned.
403 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
404 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
405 },
406 ],
407 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
408 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
409 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
410 &quot;a_key&quot;: &quot;A String&quot;,
411 },
412 }</pre>
413 </div>
414
415 <div class="method">
416 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
417 <pre>Deletes a Trial.
418
419 Args:
420 name: string, Required. The Trial&#x27;s name. Format: `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` (required)
421 x__xgafv: string, V1 error format.
422 Allowed values
423 1 - v1 error format
424 2 - v2 error format
425
426 Returns:
427 An object of the form:
428
429 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
430 }</pre>
431 </div>
432
433 <div class="method">
434 <code class="details" id="get">get(name, x__xgafv=None)</code>
435 <pre>Gets a Trial.
436
437 Args:
438 name: string, Required. The name of the Trial resource. Format: `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` (required)
439 x__xgafv: string, V1 error format.
440 Allowed values
441 1 - v1 error format
442 2 - v2 error format
443
444 Returns:
445 An object of the form:
446
447 { # 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.
448 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
449 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
450 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
451 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
452 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
453 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
454 { # A message representing a metric in the measurement.
455 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
456 &quot;value&quot;: 3.14, # Output only. The value for this metric.
457 },
458 ],
459 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
460 },
461 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
462 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
463 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
464 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
465 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
466 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
467 { # A message representing a metric in the measurement.
468 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
469 &quot;value&quot;: 3.14, # Output only. The value for this metric.
470 },
471 ],
472 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
473 },
474 ],
475 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
476 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
477 { # A message representing a parameter to be tuned.
478 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
479 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
480 },
481 ],
482 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
483 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
484 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
485 &quot;a_key&quot;: &quot;A String&quot;,
486 },
487 }</pre>
488 </div>
489
490 <div class="method">
491 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
492 <pre>Lists the Trials associated with a Study.
493
494 Args:
495 parent: string, Required. The resource name of the Study to list the Trial from. Format: `projects/{project}/locations/{location}/studies/{study}` (required)
496 pageSize: integer, Optional. The number of Trials to retrieve per &quot;page&quot; of results. If unspecified, the service will pick an appropriate default.
497 pageToken: string, Optional. A page token to request the next page of results. If unspecified, there are no subsequent pages.
498 x__xgafv: string, V1 error format.
499 Allowed values
500 1 - v1 error format
501 2 - v2 error format
502
503 Returns:
504 An object of the form:
505
506 { # Response message for VizierService.ListTrials.
507 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pass this token as the `page_token` field of the request for a subsequent call. If this field is omitted, there are no subsequent pages.
508 &quot;trials&quot;: [ # The Trials associated with the Study.
509 { # 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.
510 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
511 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
512 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
513 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
514 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
515 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
516 { # A message representing a metric in the measurement.
517 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
518 &quot;value&quot;: 3.14, # Output only. The value for this metric.
519 },
520 ],
521 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
522 },
523 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
524 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
525 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
526 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
527 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
528 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
529 { # A message representing a metric in the measurement.
530 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
531 &quot;value&quot;: 3.14, # Output only. The value for this metric.
532 },
533 ],
534 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
535 },
536 ],
537 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
538 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
539 { # A message representing a parameter to be tuned.
540 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
541 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
542 },
543 ],
544 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
545 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
546 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
547 &quot;a_key&quot;: &quot;A String&quot;,
548 },
549 },
550 ],
551 }</pre>
552 </div>
553
554 <div class="method">
555 <code class="details" id="listOptimalTrials">listOptimalTrials(parent, body=None, x__xgafv=None)</code>
556 <pre>Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for single-objective Study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency
557
558 Args:
559 parent: string, Required. The name of the Study that the optimal Trial belongs to. (required)
560 body: object, The request body.
561 The object takes the form of:
562
563 { # Request message for VizierService.ListOptimalTrials.
564 }
565
566 x__xgafv: string, V1 error format.
567 Allowed values
568 1 - v1 error format
569 2 - v2 error format
570
571 Returns:
572 An object of the form:
573
574 { # Response message for VizierService.ListOptimalTrials.
575 &quot;optimalTrials&quot;: [ # The pareto-optimal Trials for multiple objective Study or the optimal trial for single objective Study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency
576 { # 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.
577 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
578 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
579 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
580 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
581 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
582 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
583 { # A message representing a metric in the measurement.
584 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
585 &quot;value&quot;: 3.14, # Output only. The value for this metric.
586 },
587 ],
588 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
589 },
590 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
591 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
592 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
593 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
594 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
595 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
596 { # A message representing a metric in the measurement.
597 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
598 &quot;value&quot;: 3.14, # Output only. The value for this metric.
599 },
600 ],
601 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
602 },
603 ],
604 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
605 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
606 { # A message representing a parameter to be tuned.
607 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
608 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
609 },
610 ],
611 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
612 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
613 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
614 &quot;a_key&quot;: &quot;A String&quot;,
615 },
616 },
617 ],
618 }</pre>
619 </div>
620
621 <div class="method">
622 <code class="details" id="list_next">list_next()</code>
623 <pre>Retrieves the next page of results.
624
625 Args:
626 previous_request: The request for the previous page. (required)
627 previous_response: The response from the request for the previous page. (required)
628
629 Returns:
630 A request object that you can call &#x27;execute()&#x27; on to request the next
631 page. Returns None if there are no more items in the collection.
632 </pre>
633 </div>
634
635 <div class="method">
636 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
637 <pre>Stops a Trial.
638
639 Args:
640 name: string, Required. The Trial&#x27;s name. Format: `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` (required)
641 body: object, The request body.
642 The object takes the form of:
643
644 { # Request message for VizierService.StopTrial.
645 }
646
647 x__xgafv: string, V1 error format.
648 Allowed values
649 1 - v1 error format
650 2 - v2 error format
651
652 Returns:
653 An object of the form:
654
655 { # 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.
656 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this Trial. Each client is identified by a unique client_id. 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 client_id 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.
657 &quot;customJob&quot;: &quot;A String&quot;, # Output only. The CustomJob name linked to the Trial. It&#x27;s set for a HyperparameterTuningJob&#x27;s Trial.
658 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial&#x27;s status changed to `SUCCEEDED` or `INFEASIBLE`.
659 &quot;finalMeasurement&quot;: { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values. # Output only. The final measurement containing the objective value.
660 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
661 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
662 { # A message representing a metric in the measurement.
663 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
664 &quot;value&quot;: 3.14, # Output only. The value for this metric.
665 },
666 ],
667 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
668 },
669 &quot;id&quot;: &quot;A String&quot;, # Output only. The identifier of the Trial assigned by the service.
670 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the Trial is infeasible. This is set only if Trial state is `INFEASIBLE`.
671 &quot;measurements&quot;: [ # Output only. A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_duration). These are used for early stopping computations.
672 { # A message representing a Measurement of a Trial. A Measurement contains the Metrics got by executing a Trial using suggested hyperparameter values.
673 &quot;elapsedDuration&quot;: &quot;A String&quot;, # Output only. Time that the Trial has been running at the point of this Measurement.
674 &quot;metrics&quot;: [ # Output only. A list of metrics got by evaluating the objective functions using suggested Parameter values.
675 { # A message representing a metric in the measurement.
676 &quot;metricId&quot;: &quot;A String&quot;, # Output only. The ID of the Metric. The Metric should be defined in StudySpec&#x27;s Metrics.
677 &quot;value&quot;: 3.14, # Output only. The value for this metric.
678 },
679 ],
680 &quot;stepCount&quot;: &quot;A String&quot;, # Output only. The number of steps the machine learning model has been trained for. Must be non-negative.
681 },
682 ],
683 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Trial assigned by the service.
684 &quot;parameters&quot;: [ # Output only. The parameters of the Trial.
685 { # A message representing a parameter to be tuned.
686 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
687 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
688 },
689 ],
690 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time when the Trial was started.
691 &quot;state&quot;: &quot;A String&quot;, # Output only. The detailed state of the Trial.
692 &quot;webAccessUris&quot;: { # Output only. URIs for accessing [interactive shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) (one URI for each training node). Only available if this trial is part of a HyperparameterTuningJob and the job&#x27;s trial_job_spec.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&#x27;s interactive shell.
693 &quot;a_key&quot;: &quot;A String&quot;,
694 },
695 }</pre>
696 </div>
697
698 <div class="method">
699 <code class="details" id="suggest">suggest(parent, body=None, x__xgafv=None)</code>
700 <pre>Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns a long-running operation associated with the generation of Trial suggestions. When this long-running operation succeeds, it will contain a SuggestTrialsResponse.
701
702 Args:
703 parent: string, Required. The project and location that the Study belongs to. Format: `projects/{project}/locations/{location}/studies/{study}` (required)
704 body: object, The request body.
705 The object takes the form of:
706
707 { # Request message for VizierService.SuggestTrials.
708 &quot;clientId&quot;: &quot;A String&quot;, # Required. The identifier of the client that is requesting the suggestion. If multiple SuggestTrialsRequests have the same `client_id`, the service will return the identical suggested Trial if the Trial is pending, and provide a new Trial if the last suggested Trial was completed.
709 &quot;contexts&quot;: [ # Optional. This allows you to specify the &quot;context&quot; for a Trial; a context is a slice (a subspace) of the search space. Typical uses for contexts: 1) You are using Vizier to tune a server for best performance, but there&#x27;s a strong weekly cycle. The context specifies the day-of-week. This allows Tuesday to generalize from Wednesday without assuming that everything is identical. 2) Imagine you&#x27;re optimizing some medical treatment for people. As they walk in the door, you know certain facts about them (e.g. sex, weight, height, blood-pressure). Put that information in the context, and Vizier will adapt its suggestions to the patient. 3) You want to do a fair A/B test efficiently. Specify the &quot;A&quot; and &quot;B&quot; conditions as contexts, and Vizier will generalize between &quot;A&quot; and &quot;B&quot; conditions. If they are similar, this will allow Vizier to converge to the optimum faster than if &quot;A&quot; and &quot;B&quot; were separate Studies. NOTE: You can also enter contexts as REQUESTED Trials, e.g. via the CreateTrial() RPC; that&#x27;s the asynchronous option where you don&#x27;t need a close association between contexts and suggestions. NOTE: All the Parameters you set in a context MUST be defined in the Study. NOTE: You must supply 0 or $suggestion_count contexts. If you don&#x27;t supply any contexts, Vizier will make suggestions from the full search space specified in the StudySpec; if you supply a full set of context, each suggestion will match the corresponding context. NOTE: A Context with no features set matches anything, and allows suggestions from the full search space. NOTE: Contexts MUST lie within the search space specified in the StudySpec. It&#x27;s an error if they don&#x27;t. NOTE: Contexts preferentially match ACTIVE then REQUESTED trials before new suggestions are generated. NOTE: Generation of suggestions involves a match between a Context and (optionally) a REQUESTED trial; if that match is not fully specified, a suggestion will be geneated in the merged subspace.
710 {
711 &quot;description&quot;: &quot;A String&quot;, # A human-readable field which can store a description of this context. This will become part of the resulting Trial&#x27;s description field.
712 &quot;parameters&quot;: [ # If/when a Trial is generated or selected from this Context, its Parameters will match any parameters specified here. (I.e. if this context specifies parameter name:&#x27;a&#x27; int_value:3, then a resulting Trial will have int_value:3 for its parameter named &#x27;a&#x27;.) Note that we first attempt to match existing REQUESTED Trials with contexts, and if there are no matches, we generate suggestions in the subspace defined by the parameters specified here. NOTE: a Context without any Parameters matches the entire feasible search space.
713 { # A message representing a parameter to be tuned.
714 &quot;parameterId&quot;: &quot;A String&quot;, # Output only. The ID of the parameter. The parameter should be defined in StudySpec&#x27;s Parameters.
715 &quot;value&quot;: &quot;&quot;, # Output only. The value of the parameter. `number_value` will be set if a parameter defined in StudySpec is in type &#x27;INTEGER&#x27;, &#x27;DOUBLE&#x27; or &#x27;DISCRETE&#x27;. `string_value` will be set if a parameter defined in StudySpec is in type &#x27;CATEGORICAL&#x27;.
716 },
717 ],
718 },
719 ],
720 &quot;suggestionCount&quot;: 42, # Required. The number of suggestions requested. It must be positive.
721 }
722
723 x__xgafv: string, V1 error format.
724 Allowed values
725 1 - v1 error format
726 2 - v2 error format
727
728 Returns:
729 An object of the form:
730
731 { # This resource represents a long-running operation that is the result of a network API call.
732 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
733 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
734 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
735 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
736 {
737 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
738 },
739 ],
740 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
741 },
742 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
743 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
744 },
745 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
746 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
747 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
748 },
749 }</pre>
750 </div>
751
752 </body></html>