blob: 9e28f58f1a760e73ef4d99aefc0f048185f97af9 [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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<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>
Bu Sun Kim65020912020-05-20 12:08:20 -070080<p class="toc_element">
81 <code><a href="#checkEarlyStoppingState">checkEarlyStoppingState(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<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>
83<p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070086<p class="toc_element">
87 <code><a href="#complete">complete(name, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Marks a trial as complete.</p>
89<p class="toc_element">
90 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Adds a user provided trial to a study.</p>
92<p class="toc_element">
93 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Deletes a trial.</p>
95<p class="toc_element">
96 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets a trial.</p>
98<p class="toc_element">
99 <code><a href="#list">list(parent, x__xgafv=None)</a></code></p>
100<p class="firstline">Lists the trials associated with a study.</p>
101<p class="toc_element">
102 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Stops a trial.</p>
104<p class="toc_element">
105 <code><a href="#suggest">suggest(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<p class="firstline">Adds one or more trials to a study, with parameter values suggested by AI Platform 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>
Bu Sun Kim65020912020-05-20 12:08:20 -0700107<h3>Method Details</h3>
108<div class="method">
109 <code class="details" id="addMeasurement">addMeasurement(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 <pre>Adds a measurement of the objective metrics to a trial. This measurement is assumed to have been taken before the trial is complete.
Bu Sun Kim65020912020-05-20 12:08:20 -0700111
112Args:
113 name: string, Required. The trial name. (required)
114 body: object, The request body.
115 The object takes the form of:
116
117{ # The request message for the AddTrialMeasurement service method.
118 &quot;measurement&quot;: { # A message representing a measurement. # Required. The measurement to be added to a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700119 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
120 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
121 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 { # A message representing a metric in the measurement.
123 &quot;value&quot;: 3.14, # Required. The value for this metric.
124 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
125 },
126 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 },
128 }
129
130 x__xgafv: string, V1 error format.
131 Allowed values
132 1 - v1 error format
133 2 - v2 error format
134
135Returns:
136 An object of the form:
137
138 { # A message representing a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700139 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700141 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
142 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
143 &quot;parameters&quot;: [ # The parameters of the trial.
144 { # A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
145 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
146 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
147 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
148 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
149 },
150 ],
151 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
152 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
153 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
154 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
155 { # A message representing a metric in the measurement.
156 &quot;value&quot;: 3.14, # Required. The value for this metric.
157 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
158 },
159 ],
160 },
161 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
162 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true.
163 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700164 { # A message representing a measurement.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700165 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
166 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
167 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 { # A message representing a metric in the measurement.
169 &quot;value&quot;: 3.14, # Required. The value for this metric.
170 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
171 },
172 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700174 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700176 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700177</div>
178
179<div class="method">
180 <code class="details" id="checkEarlyStoppingState">checkEarlyStoppingState(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700181 <pre>Checks whether a trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a CheckTrialEarlyStoppingStateResponse.
Bu Sun Kim65020912020-05-20 12:08:20 -0700182
183Args:
184 name: string, Required. The trial name. (required)
185 body: object, The request body.
186 The object takes the form of:
187
188{ # The request message for the CheckTrialEarlyStoppingState service method.
189 }
190
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196Returns:
197 An object of the form:
198
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 { # This resource represents a long-running operation that is the result of a network API call.
200 &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}`.
201 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
202 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
203 },
204 &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.
205 &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.
206 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
207 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 {
209 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
210 },
211 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700214 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 }</pre>
218</div>
219
220<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700221 <code class="details" id="close">close()</code>
222 <pre>Close httplib2 connections.</pre>
223</div>
224
225<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 <code class="details" id="complete">complete(name, body=None, x__xgafv=None)</code>
227 <pre>Marks a trial as complete.
228
229Args:
230 name: string, Required. The trial name.metat (required)
231 body: object, The request body.
232 The object takes the form of:
233
234{ # The request message for the CompleteTrial service method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 &quot;trialInfeasible&quot;: True or False, # Optional. True if the trial cannot be run with the given Parameter, and final_measurement will be ignored.
236 &quot;finalMeasurement&quot;: { # A message representing a measurement. # 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
237 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
238 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
239 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 { # A message representing a metric in the measurement.
241 &quot;value&quot;: 3.14, # Required. The value for this metric.
242 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
243 },
244 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700246 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 }
248
249 x__xgafv: string, V1 error format.
250 Allowed values
251 1 - v1 error format
252 2 - v2 error format
253
254Returns:
255 An object of the form:
256
257 { # A message representing a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700258 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700259 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700260 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
261 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
262 &quot;parameters&quot;: [ # The parameters of the trial.
263 { # A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
264 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
265 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
266 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
267 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
268 },
269 ],
270 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
271 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
272 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
273 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
274 { # A message representing a metric in the measurement.
275 &quot;value&quot;: 3.14, # Required. The value for this metric.
276 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
277 },
278 ],
279 },
280 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
281 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true.
282 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700283 { # A message representing a measurement.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700284 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
285 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
286 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 { # A message representing a metric in the measurement.
288 &quot;value&quot;: 3.14, # Required. The value for this metric.
289 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
290 },
291 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700293 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700294 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700295 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700296</div>
297
298<div class="method">
299 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
300 <pre>Adds a user provided trial to a study.
301
302Args:
303 parent: string, Required. The name of the study that the trial belongs to. (required)
304 body: object, The request body.
305 The object takes the form of:
306
307{ # A message representing a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700308 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700309 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700310 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
311 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
312 &quot;parameters&quot;: [ # The parameters of the trial.
313 { # A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
314 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
315 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
316 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
317 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
318 },
319 ],
320 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
321 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
322 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
323 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
324 { # A message representing a metric in the measurement.
325 &quot;value&quot;: 3.14, # Required. The value for this metric.
326 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
327 },
328 ],
329 },
330 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
331 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true.
332 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700333 { # A message representing a measurement.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700334 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
335 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
336 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 { # A message representing a metric in the measurement.
338 &quot;value&quot;: 3.14, # Required. The value for this metric.
339 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
340 },
341 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700343 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700344 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700345}
Bu Sun Kim65020912020-05-20 12:08:20 -0700346
347 x__xgafv: string, V1 error format.
348 Allowed values
349 1 - v1 error format
350 2 - v2 error format
351
352Returns:
353 An object of the form:
354
355 { # A message representing a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700356 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700357 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700358 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
359 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
360 &quot;parameters&quot;: [ # The parameters of the trial.
361 { # A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
362 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
363 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
364 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
365 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
366 },
367 ],
368 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
369 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
370 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
371 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
372 { # A message representing a metric in the measurement.
373 &quot;value&quot;: 3.14, # Required. The value for this metric.
374 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
375 },
376 ],
377 },
378 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
379 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true.
380 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700381 { # A message representing a measurement.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700382 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
383 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
384 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 { # A message representing a metric in the measurement.
386 &quot;value&quot;: 3.14, # Required. The value for this metric.
387 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
388 },
389 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700391 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700392 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700393 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700394</div>
395
396<div class="method">
397 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
398 <pre>Deletes a trial.
399
400Args:
401 name: string, Required. The trial name. (required)
402 x__xgafv: string, V1 error format.
403 Allowed values
404 1 - v1 error format
405 2 - v2 error format
406
407Returns:
408 An object of the form:
409
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700410 { # 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); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 }</pre>
412</div>
413
414<div class="method">
415 <code class="details" id="get">get(name, x__xgafv=None)</code>
416 <pre>Gets a trial.
417
418Args:
419 name: string, Required. The trial name. (required)
420 x__xgafv: string, V1 error format.
421 Allowed values
422 1 - v1 error format
423 2 - v2 error format
424
425Returns:
426 An object of the form:
427
428 { # A message representing a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700429 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700430 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700431 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
432 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
433 &quot;parameters&quot;: [ # The parameters of the trial.
434 { # A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
435 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
436 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
437 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
438 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
439 },
440 ],
441 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
442 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
443 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
444 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
445 { # A message representing a metric in the measurement.
446 &quot;value&quot;: 3.14, # Required. The value for this metric.
447 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
448 },
449 ],
450 },
451 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
452 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true.
453 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700454 { # A message representing a measurement.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700455 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
456 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
457 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 { # A message representing a metric in the measurement.
459 &quot;value&quot;: 3.14, # Required. The value for this metric.
460 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
461 },
462 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700464 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700465 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700466 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700467</div>
468
469<div class="method">
470 <code class="details" id="list">list(parent, x__xgafv=None)</code>
471 <pre>Lists the trials associated with a study.
472
473Args:
474 parent: string, Required. The name of the study that the trial belongs to. (required)
475 x__xgafv: string, V1 error format.
476 Allowed values
477 1 - v1 error format
478 2 - v2 error format
479
480Returns:
481 An object of the form:
482
483 { # The response message for the ListTrials method.
484 &quot;trials&quot;: [ # The trials associated with the study.
485 { # A message representing a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700486 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700487 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700488 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
489 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
490 &quot;parameters&quot;: [ # The parameters of the trial.
491 { # A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
492 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
493 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
494 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
495 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
496 },
497 ],
498 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
499 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
500 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
501 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
502 { # A message representing a metric in the measurement.
503 &quot;value&quot;: 3.14, # Required. The value for this metric.
504 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
505 },
506 ],
507 },
508 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
509 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true.
510 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700511 { # A message representing a measurement.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700512 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
513 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
514 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 { # A message representing a metric in the measurement.
516 &quot;value&quot;: 3.14, # Required. The value for this metric.
517 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
518 },
519 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700521 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700522 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700523 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700524 ],
525 }</pre>
526</div>
527
528<div class="method">
529 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
530 <pre>Stops a trial.
531
532Args:
533 name: string, Required. The trial name. (required)
534 body: object, The request body.
535 The object takes the form of:
536
537{
538 }
539
540 x__xgafv: string, V1 error format.
541 Allowed values
542 1 - v1 error format
543 2 - v2 error format
544
545Returns:
546 An object of the form:
547
548 { # A message representing a trial.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700549 &quot;name&quot;: &quot;A String&quot;, # Output only. Name of the trial assigned by the service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700550 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial&#x27;s status changed to COMPLETED.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700551 &quot;trialInfeasible&quot;: True or False, # Output only. If true, the parameters in this trial are not attempted again.
552 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which the trial was started.
553 &quot;parameters&quot;: [ # The parameters of the trial.
554 { # A message representing a parameter to be tuned. Contains the name of the parameter and the suggested value to use for this trial.
555 &quot;parameter&quot;: &quot;A String&quot;, # The name of the parameter.
556 &quot;floatValue&quot;: 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE.
557 &quot;intValue&quot;: &quot;A String&quot;, # Must be set if ParameterType is INTEGER
558 &quot;stringValue&quot;: &quot;A String&quot;, # Must be set if ParameterTypeis CATEGORICAL
559 },
560 ],
561 &quot;finalMeasurement&quot;: { # A message representing a measurement. # The final measurement containing the objective value.
562 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
563 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
564 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
565 { # A message representing a metric in the measurement.
566 &quot;value&quot;: 3.14, # Required. The value for this metric.
567 &quot;metric&quot;: &quot;A String&quot;, # Required. Metric name.
568 },
569 ],
570 },
571 &quot;clientId&quot;: &quot;A String&quot;, # Output only. The identifier of the client that originally requested this trial.
572 &quot;infeasibleReason&quot;: &quot;A String&quot;, # Output only. A human readable string describing why the trial is infeasible. This should only be set if trial_infeasible is true.
573 &quot;measurements&quot;: [ # A list of measurements that are strictly lexicographically ordered by their induced tuples (steps, elapsed_time). These are used for early stopping computations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700574 { # A message representing a measurement.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700575 &quot;stepCount&quot;: &quot;A String&quot;, # The number of steps a machine learning model has been trained for. Must be non-negative.
576 &quot;elapsedTime&quot;: &quot;A String&quot;, # Output only. Time that the trial has been running at the point of this measurement.
577 &quot;metrics&quot;: [ # Provides a list of metrics that act as inputs into the objective function.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 { # 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 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700584 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700585 &quot;state&quot;: &quot;A String&quot;, # The detailed state of a trial.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700586 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700587</div>
588
589<div class="method">
590 <code class="details" id="suggest">suggest(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700591 <pre>Adds one or more trials to a study, with parameter values suggested by AI Platform Vizier. Returns a long-running operation associated with the generation of trial suggestions. When this long-running operation succeeds, it will contain a SuggestTrialsResponse.
Bu Sun Kim65020912020-05-20 12:08:20 -0700592
593Args:
594 parent: string, Required. The name of the study that the trial belongs to. (required)
595 body: object, The request body.
596 The object takes the form of:
597
598{ # The request message for the SuggestTrial service method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 &quot;suggestionCount&quot;: 42, # Required. The number of suggestions requested.
601 }
602
603 x__xgafv: string, V1 error format.
604 Allowed values
605 1 - v1 error format
606 2 - v2 error format
607
608Returns:
609 An object of the form:
610
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700611 { # This resource represents a long-running operation that is the result of a network API call.
612 &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}`.
613 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
614 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
615 },
616 &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.
617 &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.
618 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
619 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 {
621 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
622 },
623 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700624 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700626 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700627 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
628 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 }</pre>
630</div>
631
632</body></html>