blob: 9900cb8103d846e2b59844ec6af0f12b2f9ef336 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="ml_v1.html">AI Platform Training & Prediction API</a> . <a href="ml_v1.projects.html">projects</a> . <a href="ml_v1.projects.locations.html">locations</a> . <a href="ml_v1.projects.locations.studies.html">studies</a> . <a href="ml_v1.projects.locations.studies.trials.html">trials</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#addMeasurement">addMeasurement(name, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Adds a measurement of the objective metrics to a trial. This measurement</p>
80<p class="toc_element">
81 <code><a href="#checkEarlyStoppingState">checkEarlyStoppingState(name, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Checks whether a trial should stop or not. Returns a</p>
83<p class="toc_element">
84 <code><a href="#complete">complete(name, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Marks a trial as complete.</p>
86<p class="toc_element">
87 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Adds a user provided trial to a study.</p>
89<p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Deletes a trial.</p>
92<p class="toc_element">
93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets a trial.</p>
95<p class="toc_element">
96 <code><a href="#list">list(parent, x__xgafv=None)</a></code></p>
97<p class="firstline">Lists the trials associated with a study.</p>
98<p class="toc_element">
99 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Stops a trial.</p>
101<p class="toc_element">
102 <code><a href="#suggest">suggest(parent, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Adds one or more trials to a study, with parameter values</p>
104<h3>Method Details</h3>
105<div class="method">
106 <code class="details" id="addMeasurement">addMeasurement(name, body=None, x__xgafv=None)</code>
107 <pre>Adds a measurement of the objective metrics to a trial. This measurement
108is assumed to have been taken before the trial is complete.
109
110Args:
111 name: string, Required. The trial name. (required)
112 body: object, The request body.
113 The object takes the form of:
114
115{ # The request message for the AddTrialMeasurement service method.
116 &quot;measurement&quot;: { # A message representing a measurement. # Required. The measurement to be added to a trial.
117 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
118 # function.
119 { # A message representing a metric in the measurement.
120 &quot;value&quot;: 3.14, # Required. The value for this metric.
121 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
122 },
123 ],
124 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
125 # Must be non-negative.
126 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
127 # this measurement.
128 },
129 }
130
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136Returns:
137 An object of the form:
138
139 { # A message representing a trial.
140 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
141 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
142 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
143 # function.
144 { # A message representing a metric in the measurement.
145 &quot;value&quot;: 3.14, # Required. The value for this metric.
146 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
147 },
148 ],
149 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
150 # Must be non-negative.
151 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
152 # this measurement.
153 },
154 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
155 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
156 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically
157 # ordered by their induced tuples (steps, elapsed_time).
158 # These are used for early stopping computations.
159 { # A message representing a measurement.
160 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
161 # function.
162 { # A message representing a metric in the measurement.
163 &quot;value&quot;: 3.14, # Required. The value for this metric.
164 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
165 },
166 ],
167 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
168 # Must be non-negative.
169 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
170 # this measurement.
171 },
172 ],
173 &quot;parameters&quot;: [ # The parameters of the trial.
174 { # A message representing a parameter to be tuned. Contains the name of
175 # the parameter and the suggested value to use for this trial.
176 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
177 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
178 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
179 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
180 },
181 ],
182 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
183 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
184 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is
185 # infeasible. This should only be set if trial_infeasible is true.
186 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
187 }</pre>
188</div>
189
190<div class="method">
191 <code class="details" id="checkEarlyStoppingState">checkEarlyStoppingState(name, body=None, x__xgafv=None)</code>
192 <pre>Checks whether a trial should stop or not. Returns a
193long-running operation. When the operation is successful,
194it will contain a
195CheckTrialEarlyStoppingStateResponse.
196
197Args:
198 name: string, Required. The trial name. (required)
199 body: object, The request body.
200 The object takes the form of:
201
202{ # The request message for the CheckTrialEarlyStoppingState service method.
203 }
204
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210Returns:
211 An object of the form:
212
213 { # This resource represents a long-running operation that is the result of a
214 # network API call.
215 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
216 # method returns no data on success, such as `Delete`, the response is
217 # `google.protobuf.Empty`. If the original method is standard
218 # `Get`/`Create`/`Update`, the response should be the resource. For other
219 # methods, the response should have the type `XxxResponse`, where `Xxx`
220 # is the original method name. For example, if the original method name
221 # is `TakeSnapshot()`, the inferred response type is
222 # `TakeSnapshotResponse`.
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
226 # originally returns it. If you use the default HTTP mapping, the
227 # `name` should be a resource name ending with `operations/{unique_id}`.
228 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
229 # different programming environments, including REST APIs and RPC APIs. It is
230 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
231 # three pieces of data: error code, error message, and error details.
232 #
233 # You can find out more about this error model and how to work with it in the
234 # [API Design Guide](https://cloud.google.com/apis/design/errors).
235 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
236 # message types for APIs to use.
237 {
238 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
239 },
240 ],
241 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
242 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
243 # user-facing error message should be localized and sent in the
244 # google.rpc.Status.details field, or localized by the client.
245 },
246 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
247 # contains progress information and common metadata such as create time.
248 # Some services might not provide such metadata. Any method that returns a
249 # long-running operation should document the metadata type, if any.
250 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
251 },
252 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
253 # If `true`, the operation is completed, and either `error` or `response` is
254 # available.
255 }</pre>
256</div>
257
258<div class="method">
259 <code class="details" id="complete">complete(name, body=None, x__xgafv=None)</code>
260 <pre>Marks a trial as complete.
261
262Args:
263 name: string, Required. The trial name.metat (required)
264 body: object, The request body.
265 The object takes the form of:
266
267{ # The request message for the CompleteTrial service method.
268 &quot;finalMeasurement&quot;: { # A message representing a measurement. # Optional. If provided, it will be used as the completed trial&#x27;s
269 # final_measurement; Otherwise, the service will auto-select a
270 # previously reported measurement as the final-measurement
271 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
272 # function.
273 { # A message representing a metric in the measurement.
274 &quot;value&quot;: 3.14, # Required. The value for this metric.
275 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
276 },
277 ],
278 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
279 # Must be non-negative.
280 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
281 # this measurement.
282 },
283 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Optional. A human readable reason why the trial was infeasible. This should
284 # only be provided if `trial_infeasible` is true.
285 &quot;trialInfeasible&quot;: True or False, # Optional. True if the trial cannot be run with the given Parameter, and
286 # final_measurement will be ignored.
287 }
288
289 x__xgafv: string, V1 error format.
290 Allowed values
291 1 - v1 error format
292 2 - v2 error format
293
294Returns:
295 An object of the form:
296
297 { # A message representing a trial.
298 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
299 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
300 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
301 # function.
302 { # A message representing a metric in the measurement.
303 &quot;value&quot;: 3.14, # Required. The value for this metric.
304 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
305 },
306 ],
307 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
308 # Must be non-negative.
309 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
310 # this measurement.
311 },
312 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
313 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
314 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically
315 # ordered by their induced tuples (steps, elapsed_time).
316 # These are used for early stopping computations.
317 { # A message representing a measurement.
318 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
319 # function.
320 { # A message representing a metric in the measurement.
321 &quot;value&quot;: 3.14, # Required. The value for this metric.
322 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
323 },
324 ],
325 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
326 # Must be non-negative.
327 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
328 # this measurement.
329 },
330 ],
331 &quot;parameters&quot;: [ # The parameters of the trial.
332 { # A message representing a parameter to be tuned. Contains the name of
333 # the parameter and the suggested value to use for this trial.
334 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
335 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
336 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
337 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
338 },
339 ],
340 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
341 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
342 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is
343 # infeasible. This should only be set if trial_infeasible is true.
344 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
345 }</pre>
346</div>
347
348<div class="method">
349 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
350 <pre>Adds a user provided trial to a study.
351
352Args:
353 parent: string, Required. The name of the study that the trial belongs to. (required)
354 body: object, The request body.
355 The object takes the form of:
356
357{ # A message representing a trial.
358 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
359 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
360 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
361 # function.
362 { # A message representing a metric in the measurement.
363 &quot;value&quot;: 3.14, # Required. The value for this metric.
364 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
365 },
366 ],
367 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
368 # Must be non-negative.
369 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
370 # this measurement.
371 },
372 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
373 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
374 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically
375 # ordered by their induced tuples (steps, elapsed_time).
376 # These are used for early stopping computations.
377 { # A message representing a measurement.
378 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
379 # function.
380 { # A message representing a metric in the measurement.
381 &quot;value&quot;: 3.14, # Required. The value for this metric.
382 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
383 },
384 ],
385 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
386 # Must be non-negative.
387 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
388 # this measurement.
389 },
390 ],
391 &quot;parameters&quot;: [ # The parameters of the trial.
392 { # A message representing a parameter to be tuned. Contains the name of
393 # the parameter and the suggested value to use for this trial.
394 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
395 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
396 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
397 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
398 },
399 ],
400 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
401 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
402 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is
403 # infeasible. This should only be set if trial_infeasible is true.
404 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
405}
406
407 x__xgafv: string, V1 error format.
408 Allowed values
409 1 - v1 error format
410 2 - v2 error format
411
412Returns:
413 An object of the form:
414
415 { # A message representing a trial.
416 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
417 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
418 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
419 # function.
420 { # A message representing a metric in the measurement.
421 &quot;value&quot;: 3.14, # Required. The value for this metric.
422 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
423 },
424 ],
425 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
426 # Must be non-negative.
427 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
428 # this measurement.
429 },
430 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
431 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
432 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically
433 # ordered by their induced tuples (steps, elapsed_time).
434 # These are used for early stopping computations.
435 { # A message representing a measurement.
436 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
437 # function.
438 { # A message representing a metric in the measurement.
439 &quot;value&quot;: 3.14, # Required. The value for this metric.
440 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
441 },
442 ],
443 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
444 # Must be non-negative.
445 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
446 # this measurement.
447 },
448 ],
449 &quot;parameters&quot;: [ # The parameters of the trial.
450 { # A message representing a parameter to be tuned. Contains the name of
451 # the parameter and the suggested value to use for this trial.
452 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
453 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
454 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
455 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
456 },
457 ],
458 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
459 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
460 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is
461 # infeasible. This should only be set if trial_infeasible is true.
462 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
463 }</pre>
464</div>
465
466<div class="method">
467 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
468 <pre>Deletes a trial.
469
470Args:
471 name: string, Required. The trial name. (required)
472 x__xgafv: string, V1 error format.
473 Allowed values
474 1 - v1 error format
475 2 - v2 error format
476
477Returns:
478 An object of the form:
479
480 { # A generic empty message that you can re-use to avoid defining duplicated
481 # empty messages in your APIs. A typical example is to use it as the request
482 # or the response type of an API method. For instance:
483 #
484 # service Foo {
485 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
486 # }
487 #
488 # The JSON representation for `Empty` is empty JSON object `{}`.
489 }</pre>
490</div>
491
492<div class="method">
493 <code class="details" id="get">get(name, x__xgafv=None)</code>
494 <pre>Gets a trial.
495
496Args:
497 name: string, Required. The trial name. (required)
498 x__xgafv: string, V1 error format.
499 Allowed values
500 1 - v1 error format
501 2 - v2 error format
502
503Returns:
504 An object of the form:
505
506 { # A message representing a trial.
507 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
508 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
509 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
510 # function.
511 { # A message representing a metric in the measurement.
512 &quot;value&quot;: 3.14, # Required. The value for this metric.
513 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
514 },
515 ],
516 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
517 # Must be non-negative.
518 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
519 # this measurement.
520 },
521 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
522 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
523 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically
524 # ordered by their induced tuples (steps, elapsed_time).
525 # These are used for early stopping computations.
526 { # A message representing a measurement.
527 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
528 # function.
529 { # A message representing a metric in the measurement.
530 &quot;value&quot;: 3.14, # Required. The value for this metric.
531 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
532 },
533 ],
534 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
535 # Must be non-negative.
536 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
537 # this measurement.
538 },
539 ],
540 &quot;parameters&quot;: [ # The parameters of the trial.
541 { # A message representing a parameter to be tuned. Contains the name of
542 # the parameter and the suggested value to use for this trial.
543 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
544 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
545 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
546 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
547 },
548 ],
549 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
550 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
551 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is
552 # infeasible. This should only be set if trial_infeasible is true.
553 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
554 }</pre>
555</div>
556
557<div class="method">
558 <code class="details" id="list">list(parent, x__xgafv=None)</code>
559 <pre>Lists the trials associated with a study.
560
561Args:
562 parent: string, Required. The name of the study that the trial belongs to. (required)
563 x__xgafv: string, V1 error format.
564 Allowed values
565 1 - v1 error format
566 2 - v2 error format
567
568Returns:
569 An object of the form:
570
571 { # The response message for the ListTrials method.
572 &quot;trials&quot;: [ # The trials associated with the study.
573 { # A message representing a trial.
574 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
575 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
576 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
577 # function.
578 { # A message representing a metric in the measurement.
579 &quot;value&quot;: 3.14, # Required. The value for this metric.
580 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
581 },
582 ],
583 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
584 # Must be non-negative.
585 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
586 # this measurement.
587 },
588 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
589 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
590 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically
591 # ordered by their induced tuples (steps, elapsed_time).
592 # These are used for early stopping computations.
593 { # A message representing a measurement.
594 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
595 # function.
596 { # A message representing a metric in the measurement.
597 &quot;value&quot;: 3.14, # Required. The value for this metric.
598 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
599 },
600 ],
601 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
602 # Must be non-negative.
603 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
604 # this measurement.
605 },
606 ],
607 &quot;parameters&quot;: [ # The parameters of the trial.
608 { # A message representing a parameter to be tuned. Contains the name of
609 # the parameter and the suggested value to use for this trial.
610 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
611 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
612 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
613 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
614 },
615 ],
616 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
617 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
618 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is
619 # infeasible. This should only be set if trial_infeasible is true.
620 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
621 },
622 ],
623 }</pre>
624</div>
625
626<div class="method">
627 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
628 <pre>Stops a trial.
629
630Args:
631 name: string, Required. The trial name. (required)
632 body: object, The request body.
633 The object takes the form of:
634
635{
636 }
637
638 x__xgafv: string, V1 error format.
639 Allowed values
640 1 - v1 error format
641 2 - v2 error format
642
643Returns:
644 An object of the form:
645
646 { # A message representing a trial.
647 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
648 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
649 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
650 # function.
651 { # A message representing a metric in the measurement.
652 &quot;value&quot;: 3.14, # Required. The value for this metric.
653 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
654 },
655 ],
656 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
657 # Must be non-negative.
658 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
659 # this measurement.
660 },
661 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
662 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
663 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically
664 # ordered by their induced tuples (steps, elapsed_time).
665 # These are used for early stopping computations.
666 { # A message representing a measurement.
667 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective
668 # function.
669 { # A message representing a metric in the measurement.
670 &quot;value&quot;: 3.14, # Required. The value for this metric.
671 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
672 },
673 ],
674 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for.
675 # Must be non-negative.
676 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of
677 # this measurement.
678 },
679 ],
680 &quot;parameters&quot;: [ # The parameters of the trial.
681 { # A message representing a parameter to be tuned. Contains the name of
682 # the parameter and the suggested value to use for this trial.
683 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
684 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
685 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
686 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
687 },
688 ],
689 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
690 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
691 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is
692 # infeasible. This should only be set if trial_infeasible is true.
693 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
694 }</pre>
695</div>
696
697<div class="method">
698 <code class="details" id="suggest">suggest(parent, body=None, x__xgafv=None)</code>
699 <pre>Adds one or more trials to a study, with parameter values
700suggested by AI Platform Optimizer. Returns a long-running
701operation associated with the generation of trial suggestions.
702When this long-running operation succeeds, it will contain
703a SuggestTrialsResponse.
704
705Args:
706 parent: string, Required. The name of the study that the trial belongs to. (required)
707 body: object, The request body.
708 The object takes the form of:
709
710{ # The request message for the SuggestTrial service method.
711 &quot;clientId&quot;: &quot;A String&quot;, # Required. The identifier of the client that is requesting the suggestion.
712 #
713 # If multiple SuggestTrialsRequests have the same `client_id`,
714 # the service will return the identical suggested trial if the trial is
715 # pending, and provide a new trial if the last suggested trial was completed.
716 &quot;suggestionCount&quot;: 42, # Required. The number of suggestions requested.
717 }
718
719 x__xgafv: string, V1 error format.
720 Allowed values
721 1 - v1 error format
722 2 - v2 error format
723
724Returns:
725 An object of the form:
726
727 { # This resource represents a long-running operation that is the result of a
728 # network API call.
729 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
730 # method returns no data on success, such as `Delete`, the response is
731 # `google.protobuf.Empty`. If the original method is standard
732 # `Get`/`Create`/`Update`, the response should be the resource. For other
733 # methods, the response should have the type `XxxResponse`, where `Xxx`
734 # is the original method name. For example, if the original method name
735 # is `TakeSnapshot()`, the inferred response type is
736 # `TakeSnapshotResponse`.
737 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
738 },
739 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
740 # originally returns it. If you use the default HTTP mapping, the
741 # `name` should be a resource name ending with `operations/{unique_id}`.
742 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
743 # different programming environments, including REST APIs and RPC APIs. It is
744 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
745 # three pieces of data: error code, error message, and error details.
746 #
747 # You can find out more about this error model and how to work with it in the
748 # [API Design Guide](https://cloud.google.com/apis/design/errors).
749 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
750 # message types for APIs to use.
751 {
752 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
753 },
754 ],
755 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
756 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
757 # user-facing error message should be localized and sent in the
758 # google.rpc.Status.details field, or localized by the client.
759 },
760 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
761 # contains progress information and common metadata such as create time.
762 # Some services might not provide such metadata. Any method that returns a
763 # long-running operation should document the metadata type, if any.
764 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
765 },
766 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
767 # If `true`, the operation is completed, and either `error` or `response` is
768 # available.
769 }</pre>
770</div>
771
772</body></html>