Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame^] | 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="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 |
| 108 | is assumed to have been taken before the trial is complete. |
| 109 | |
| 110 | Args: |
| 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 | "measurement": { # A message representing a measurement. # Required. The measurement to be added to a trial. |
| 117 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 118 | # function. |
| 119 | { # A message representing a metric in the measurement. |
| 120 | "value": 3.14, # Required. The value for this metric. |
| 121 | "metric": "A String", # Required. Metric name. |
| 122 | }, |
| 123 | ], |
| 124 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 125 | # Must be non-negative. |
| 126 | "elapsedTime": "A String", # 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 | |
| 136 | Returns: |
| 137 | An object of the form: |
| 138 | |
| 139 | { # A message representing a trial. |
| 140 | "startTime": "A String", # Output only. Time at which the trial was started. |
| 141 | "finalMeasurement": { # A message representing a measurement. # The final measurement containing the objective value. |
| 142 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 143 | # function. |
| 144 | { # A message representing a metric in the measurement. |
| 145 | "value": 3.14, # Required. The value for this metric. |
| 146 | "metric": "A String", # Required. Metric name. |
| 147 | }, |
| 148 | ], |
| 149 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 150 | # Must be non-negative. |
| 151 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 152 | # this measurement. |
| 153 | }, |
| 154 | "trialInfeasible": True or False, # Output only. If true, the parameters in this trial are not attempted again. |
| 155 | "state": "A String", # The detailed state of a trial. |
| 156 | "measurements": [ # 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 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 161 | # function. |
| 162 | { # A message representing a metric in the measurement. |
| 163 | "value": 3.14, # Required. The value for this metric. |
| 164 | "metric": "A String", # Required. Metric name. |
| 165 | }, |
| 166 | ], |
| 167 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 168 | # Must be non-negative. |
| 169 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 170 | # this measurement. |
| 171 | }, |
| 172 | ], |
| 173 | "parameters": [ # 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 | "parameter": "A String", # The name of the parameter. |
| 177 | "intValue": "A String", # Must be set if ParameterType is INTEGER |
| 178 | "floatValue": 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE. |
| 179 | "stringValue": "A String", # Must be set if ParameterTypeis CATEGORICAL |
| 180 | }, |
| 181 | ], |
| 182 | "name": "A String", # Output only. Name of the trial assigned by the service. |
| 183 | "clientId": "A String", # Output only. The identifier of the client that originally requested this trial. |
| 184 | "infeasibleReason": "A String", # Output only. A human readable string describing why the trial is |
| 185 | # infeasible. This should only be set if trial_infeasible is true. |
| 186 | "endTime": "A String", # Output only. Time at which the trial'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 |
| 193 | long-running operation. When the operation is successful, |
| 194 | it will contain a |
| 195 | CheckTrialEarlyStoppingStateResponse. |
| 196 | |
| 197 | Args: |
| 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 | |
| 210 | Returns: |
| 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 | "response": { # 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 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 224 | }, |
| 225 | "name": "A String", # 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 | "error": { # 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 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 236 | # message types for APIs to use. |
| 237 | { |
| 238 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 239 | }, |
| 240 | ], |
| 241 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 242 | "message": "A String", # 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 | "metadata": { # 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 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 251 | }, |
| 252 | "done": 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 | |
| 262 | Args: |
| 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 | "finalMeasurement": { # A message representing a measurement. # Optional. If provided, it will be used as the completed trial's |
| 269 | # final_measurement; Otherwise, the service will auto-select a |
| 270 | # previously reported measurement as the final-measurement |
| 271 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 272 | # function. |
| 273 | { # A message representing a metric in the measurement. |
| 274 | "value": 3.14, # Required. The value for this metric. |
| 275 | "metric": "A String", # Required. Metric name. |
| 276 | }, |
| 277 | ], |
| 278 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 279 | # Must be non-negative. |
| 280 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 281 | # this measurement. |
| 282 | }, |
| 283 | "infeasibleReason": "A String", # Optional. A human readable reason why the trial was infeasible. This should |
| 284 | # only be provided if `trial_infeasible` is true. |
| 285 | "trialInfeasible": 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 | |
| 294 | Returns: |
| 295 | An object of the form: |
| 296 | |
| 297 | { # A message representing a trial. |
| 298 | "startTime": "A String", # Output only. Time at which the trial was started. |
| 299 | "finalMeasurement": { # A message representing a measurement. # The final measurement containing the objective value. |
| 300 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 301 | # function. |
| 302 | { # A message representing a metric in the measurement. |
| 303 | "value": 3.14, # Required. The value for this metric. |
| 304 | "metric": "A String", # Required. Metric name. |
| 305 | }, |
| 306 | ], |
| 307 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 308 | # Must be non-negative. |
| 309 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 310 | # this measurement. |
| 311 | }, |
| 312 | "trialInfeasible": True or False, # Output only. If true, the parameters in this trial are not attempted again. |
| 313 | "state": "A String", # The detailed state of a trial. |
| 314 | "measurements": [ # 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 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 319 | # function. |
| 320 | { # A message representing a metric in the measurement. |
| 321 | "value": 3.14, # Required. The value for this metric. |
| 322 | "metric": "A String", # Required. Metric name. |
| 323 | }, |
| 324 | ], |
| 325 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 326 | # Must be non-negative. |
| 327 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 328 | # this measurement. |
| 329 | }, |
| 330 | ], |
| 331 | "parameters": [ # 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 | "parameter": "A String", # The name of the parameter. |
| 335 | "intValue": "A String", # Must be set if ParameterType is INTEGER |
| 336 | "floatValue": 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE. |
| 337 | "stringValue": "A String", # Must be set if ParameterTypeis CATEGORICAL |
| 338 | }, |
| 339 | ], |
| 340 | "name": "A String", # Output only. Name of the trial assigned by the service. |
| 341 | "clientId": "A String", # Output only. The identifier of the client that originally requested this trial. |
| 342 | "infeasibleReason": "A String", # Output only. A human readable string describing why the trial is |
| 343 | # infeasible. This should only be set if trial_infeasible is true. |
| 344 | "endTime": "A String", # Output only. Time at which the trial'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 | |
| 352 | Args: |
| 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 | "startTime": "A String", # Output only. Time at which the trial was started. |
| 359 | "finalMeasurement": { # A message representing a measurement. # The final measurement containing the objective value. |
| 360 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 361 | # function. |
| 362 | { # A message representing a metric in the measurement. |
| 363 | "value": 3.14, # Required. The value for this metric. |
| 364 | "metric": "A String", # Required. Metric name. |
| 365 | }, |
| 366 | ], |
| 367 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 368 | # Must be non-negative. |
| 369 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 370 | # this measurement. |
| 371 | }, |
| 372 | "trialInfeasible": True or False, # Output only. If true, the parameters in this trial are not attempted again. |
| 373 | "state": "A String", # The detailed state of a trial. |
| 374 | "measurements": [ # 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 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 379 | # function. |
| 380 | { # A message representing a metric in the measurement. |
| 381 | "value": 3.14, # Required. The value for this metric. |
| 382 | "metric": "A String", # Required. Metric name. |
| 383 | }, |
| 384 | ], |
| 385 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 386 | # Must be non-negative. |
| 387 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 388 | # this measurement. |
| 389 | }, |
| 390 | ], |
| 391 | "parameters": [ # 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 | "parameter": "A String", # The name of the parameter. |
| 395 | "intValue": "A String", # Must be set if ParameterType is INTEGER |
| 396 | "floatValue": 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE. |
| 397 | "stringValue": "A String", # Must be set if ParameterTypeis CATEGORICAL |
| 398 | }, |
| 399 | ], |
| 400 | "name": "A String", # Output only. Name of the trial assigned by the service. |
| 401 | "clientId": "A String", # Output only. The identifier of the client that originally requested this trial. |
| 402 | "infeasibleReason": "A String", # Output only. A human readable string describing why the trial is |
| 403 | # infeasible. This should only be set if trial_infeasible is true. |
| 404 | "endTime": "A String", # Output only. Time at which the trial'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 | |
| 412 | Returns: |
| 413 | An object of the form: |
| 414 | |
| 415 | { # A message representing a trial. |
| 416 | "startTime": "A String", # Output only. Time at which the trial was started. |
| 417 | "finalMeasurement": { # A message representing a measurement. # The final measurement containing the objective value. |
| 418 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 419 | # function. |
| 420 | { # A message representing a metric in the measurement. |
| 421 | "value": 3.14, # Required. The value for this metric. |
| 422 | "metric": "A String", # Required. Metric name. |
| 423 | }, |
| 424 | ], |
| 425 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 426 | # Must be non-negative. |
| 427 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 428 | # this measurement. |
| 429 | }, |
| 430 | "trialInfeasible": True or False, # Output only. If true, the parameters in this trial are not attempted again. |
| 431 | "state": "A String", # The detailed state of a trial. |
| 432 | "measurements": [ # 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 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 437 | # function. |
| 438 | { # A message representing a metric in the measurement. |
| 439 | "value": 3.14, # Required. The value for this metric. |
| 440 | "metric": "A String", # Required. Metric name. |
| 441 | }, |
| 442 | ], |
| 443 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 444 | # Must be non-negative. |
| 445 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 446 | # this measurement. |
| 447 | }, |
| 448 | ], |
| 449 | "parameters": [ # 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 | "parameter": "A String", # The name of the parameter. |
| 453 | "intValue": "A String", # Must be set if ParameterType is INTEGER |
| 454 | "floatValue": 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE. |
| 455 | "stringValue": "A String", # Must be set if ParameterTypeis CATEGORICAL |
| 456 | }, |
| 457 | ], |
| 458 | "name": "A String", # Output only. Name of the trial assigned by the service. |
| 459 | "clientId": "A String", # Output only. The identifier of the client that originally requested this trial. |
| 460 | "infeasibleReason": "A String", # Output only. A human readable string describing why the trial is |
| 461 | # infeasible. This should only be set if trial_infeasible is true. |
| 462 | "endTime": "A String", # Output only. Time at which the trial'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 | |
| 470 | Args: |
| 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 | |
| 477 | Returns: |
| 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 | |
| 496 | Args: |
| 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 | |
| 503 | Returns: |
| 504 | An object of the form: |
| 505 | |
| 506 | { # A message representing a trial. |
| 507 | "startTime": "A String", # Output only. Time at which the trial was started. |
| 508 | "finalMeasurement": { # A message representing a measurement. # The final measurement containing the objective value. |
| 509 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 510 | # function. |
| 511 | { # A message representing a metric in the measurement. |
| 512 | "value": 3.14, # Required. The value for this metric. |
| 513 | "metric": "A String", # Required. Metric name. |
| 514 | }, |
| 515 | ], |
| 516 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 517 | # Must be non-negative. |
| 518 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 519 | # this measurement. |
| 520 | }, |
| 521 | "trialInfeasible": True or False, # Output only. If true, the parameters in this trial are not attempted again. |
| 522 | "state": "A String", # The detailed state of a trial. |
| 523 | "measurements": [ # 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 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 528 | # function. |
| 529 | { # A message representing a metric in the measurement. |
| 530 | "value": 3.14, # Required. The value for this metric. |
| 531 | "metric": "A String", # Required. Metric name. |
| 532 | }, |
| 533 | ], |
| 534 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 535 | # Must be non-negative. |
| 536 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 537 | # this measurement. |
| 538 | }, |
| 539 | ], |
| 540 | "parameters": [ # 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 | "parameter": "A String", # The name of the parameter. |
| 544 | "intValue": "A String", # Must be set if ParameterType is INTEGER |
| 545 | "floatValue": 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE. |
| 546 | "stringValue": "A String", # Must be set if ParameterTypeis CATEGORICAL |
| 547 | }, |
| 548 | ], |
| 549 | "name": "A String", # Output only. Name of the trial assigned by the service. |
| 550 | "clientId": "A String", # Output only. The identifier of the client that originally requested this trial. |
| 551 | "infeasibleReason": "A String", # Output only. A human readable string describing why the trial is |
| 552 | # infeasible. This should only be set if trial_infeasible is true. |
| 553 | "endTime": "A String", # Output only. Time at which the trial'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 | |
| 561 | Args: |
| 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 | |
| 568 | Returns: |
| 569 | An object of the form: |
| 570 | |
| 571 | { # The response message for the ListTrials method. |
| 572 | "trials": [ # The trials associated with the study. |
| 573 | { # A message representing a trial. |
| 574 | "startTime": "A String", # Output only. Time at which the trial was started. |
| 575 | "finalMeasurement": { # A message representing a measurement. # The final measurement containing the objective value. |
| 576 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 577 | # function. |
| 578 | { # A message representing a metric in the measurement. |
| 579 | "value": 3.14, # Required. The value for this metric. |
| 580 | "metric": "A String", # Required. Metric name. |
| 581 | }, |
| 582 | ], |
| 583 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 584 | # Must be non-negative. |
| 585 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 586 | # this measurement. |
| 587 | }, |
| 588 | "trialInfeasible": True or False, # Output only. If true, the parameters in this trial are not attempted again. |
| 589 | "state": "A String", # The detailed state of a trial. |
| 590 | "measurements": [ # 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 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 595 | # function. |
| 596 | { # A message representing a metric in the measurement. |
| 597 | "value": 3.14, # Required. The value for this metric. |
| 598 | "metric": "A String", # Required. Metric name. |
| 599 | }, |
| 600 | ], |
| 601 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 602 | # Must be non-negative. |
| 603 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 604 | # this measurement. |
| 605 | }, |
| 606 | ], |
| 607 | "parameters": [ # 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 | "parameter": "A String", # The name of the parameter. |
| 611 | "intValue": "A String", # Must be set if ParameterType is INTEGER |
| 612 | "floatValue": 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE. |
| 613 | "stringValue": "A String", # Must be set if ParameterTypeis CATEGORICAL |
| 614 | }, |
| 615 | ], |
| 616 | "name": "A String", # Output only. Name of the trial assigned by the service. |
| 617 | "clientId": "A String", # Output only. The identifier of the client that originally requested this trial. |
| 618 | "infeasibleReason": "A String", # Output only. A human readable string describing why the trial is |
| 619 | # infeasible. This should only be set if trial_infeasible is true. |
| 620 | "endTime": "A String", # Output only. Time at which the trial'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 | |
| 630 | Args: |
| 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 | |
| 643 | Returns: |
| 644 | An object of the form: |
| 645 | |
| 646 | { # A message representing a trial. |
| 647 | "startTime": "A String", # Output only. Time at which the trial was started. |
| 648 | "finalMeasurement": { # A message representing a measurement. # The final measurement containing the objective value. |
| 649 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 650 | # function. |
| 651 | { # A message representing a metric in the measurement. |
| 652 | "value": 3.14, # Required. The value for this metric. |
| 653 | "metric": "A String", # Required. Metric name. |
| 654 | }, |
| 655 | ], |
| 656 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 657 | # Must be non-negative. |
| 658 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 659 | # this measurement. |
| 660 | }, |
| 661 | "trialInfeasible": True or False, # Output only. If true, the parameters in this trial are not attempted again. |
| 662 | "state": "A String", # The detailed state of a trial. |
| 663 | "measurements": [ # 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 | "metrics": [ # Provides a list of metrics that act as inputs into the objective |
| 668 | # function. |
| 669 | { # A message representing a metric in the measurement. |
| 670 | "value": 3.14, # Required. The value for this metric. |
| 671 | "metric": "A String", # Required. Metric name. |
| 672 | }, |
| 673 | ], |
| 674 | "stepCount": "A String", # The number of steps a machine learning model has been trained for. |
| 675 | # Must be non-negative. |
| 676 | "elapsedTime": "A String", # Output only. Time that the trial has been running at the point of |
| 677 | # this measurement. |
| 678 | }, |
| 679 | ], |
| 680 | "parameters": [ # 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 | "parameter": "A String", # The name of the parameter. |
| 684 | "intValue": "A String", # Must be set if ParameterType is INTEGER |
| 685 | "floatValue": 3.14, # Must be set if ParameterType is DOUBLE or DISCRETE. |
| 686 | "stringValue": "A String", # Must be set if ParameterTypeis CATEGORICAL |
| 687 | }, |
| 688 | ], |
| 689 | "name": "A String", # Output only. Name of the trial assigned by the service. |
| 690 | "clientId": "A String", # Output only. The identifier of the client that originally requested this trial. |
| 691 | "infeasibleReason": "A String", # Output only. A human readable string describing why the trial is |
| 692 | # infeasible. This should only be set if trial_infeasible is true. |
| 693 | "endTime": "A String", # Output only. Time at which the trial'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 |
| 700 | suggested by AI Platform Optimizer. Returns a long-running |
| 701 | operation associated with the generation of trial suggestions. |
| 702 | When this long-running operation succeeds, it will contain |
| 703 | a SuggestTrialsResponse. |
| 704 | |
| 705 | Args: |
| 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 | "clientId": "A String", # 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 | "suggestionCount": 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 | |
| 724 | Returns: |
| 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 | "response": { # 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 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 738 | }, |
| 739 | "name": "A String", # 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 | "error": { # 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 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 750 | # message types for APIs to use. |
| 751 | { |
| 752 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 753 | }, |
| 754 | ], |
| 755 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 756 | "message": "A String", # 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 | "metadata": { # 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 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 765 | }, |
| 766 | "done": 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> |