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></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="ml_v1.projects.locations.studies.trials.html">trials()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the trials Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
| 83 | <code><a href="#create">create(parent, body=None, studyId=None, x__xgafv=None)</a></code></p> |
| 84 | <p class="firstline">Creates a study.</p> |
| 85 | <p class="toc_element"> |
| 86 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 87 | <p class="firstline">Deletes a study.</p> |
| 88 | <p class="toc_element"> |
| 89 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 90 | <p class="firstline">Gets a study.</p> |
| 91 | <p class="toc_element"> |
| 92 | <code><a href="#list">list(parent, x__xgafv=None)</a></code></p> |
| 93 | <p class="firstline">Lists all the studies in a region for an associated project.</p> |
| 94 | <h3>Method Details</h3> |
| 95 | <div class="method"> |
| 96 | <code class="details" id="create">create(parent, body=None, studyId=None, x__xgafv=None)</code> |
| 97 | <pre>Creates a study. |
| 98 | |
| 99 | Args: |
| 100 | parent: string, Required. The project and location that the study belongs to. |
| 101 | Format: projects/{project}/locations/{location} (required) |
| 102 | body: object, The request body. |
| 103 | The object takes the form of: |
| 104 | |
| 105 | { # A message representing a Study. |
| 106 | "inactiveReason": "A String", # Output only. A human readable reason why the Study is inactive. |
| 107 | # This should be empty if a study is ACTIVE or COMPLETED. |
| 108 | "createTime": "A String", # Output only. Time at which the study was created. |
| 109 | "state": "A String", # Output only. The detailed state of a study. |
| 110 | "name": "A String", # Output only. The name of a study. |
| 111 | "studyConfig": { # Represents configuration of a study. # Required. Configuration of the study. |
| 112 | "automatedStoppingConfig": { # Configuration for Automated Early Stopping of Trials. If no # Configuration for automated stopping of unpromising Trials. |
| 113 | # implementation_config is set, automated early stopping will not be run. |
| 114 | "medianAutomatedStoppingConfig": { # The median automated stopping rule stops a pending trial if the trial's |
| 115 | # best objective_value is strictly below the median 'performance' of all |
| 116 | # completed trials reported up to the trial's last measurement. |
| 117 | # Currently, 'performance' refers to the running average of the objective |
| 118 | # values reported by the trial in each measurement. |
| 119 | "useElapsedTime": True or False, # If true, the median automated stopping rule applies to |
| 120 | # measurement.use_elapsed_time, which means the elapsed_time field of |
| 121 | # the current trial's |
| 122 | # latest measurement is used to compute the median objective |
| 123 | # value for each completed trial. |
| 124 | }, |
| 125 | "decayCurveStoppingConfig": { |
| 126 | "useElapsedTime": True or False, # If true, measurement.elapsed_time is used as the x-axis of each |
| 127 | # Trials Decay Curve. Otherwise, Measurement.steps will be used as the |
| 128 | # x-axis. |
| 129 | }, |
| 130 | }, |
| 131 | "metrics": [ # Metric specs for the study. |
| 132 | { # Represents a metric to optimize. |
| 133 | "goal": "A String", # Required. The optimization goal of the metric. |
| 134 | "metric": "A String", # Required. The name of the metric. |
| 135 | }, |
| 136 | ], |
| 137 | "algorithm": "A String", # The search algorithm specified for the study. |
| 138 | "parameters": [ # Required. The set of parameters to tune. |
| 139 | { # Represents a single parameter to optimize. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 140 | "type": "A String", # Required. The type of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 141 | "parentDiscreteValues": { # Represents the spec to match discrete values from parent parameter. |
| 142 | "values": [ # Matches values of the parent parameter with type 'DISCRETE'. |
| 143 | # All values must exist in `discrete_value_spec` of parent parameter. |
| 144 | 3.14, |
| 145 | ], |
| 146 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 147 | "doubleValueSpec": { # The value spec for a 'DOUBLE' parameter. |
| 148 | "maxValue": 3.14, # Must be specified if type is `DOUBLE`. Maximum value of the parameter. |
| 149 | "minValue": 3.14, # Must be specified if type is `DOUBLE`. Minimum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 150 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 151 | "integerValueSpec": { # The value spec for an 'INTEGER' parameter. |
| 152 | "minValue": "A String", # Must be specified if type is `INTEGER`. Minimum value of the parameter. |
| 153 | "maxValue": "A String", # Must be specified if type is `INTEGER`. Maximum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 154 | }, |
| 155 | "categoricalValueSpec": { # The value spec for a 'CATEGORICAL' parameter. |
| 156 | "values": [ # Must be specified if type is `CATEGORICAL`. |
| 157 | # The list of possible categories. |
| 158 | "A String", |
| 159 | ], |
| 160 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 161 | "parentIntValues": { # Represents the spec to match integer values from parent parameter. |
| 162 | "values": [ # Matches values of the parent parameter with type 'INTEGER'. |
| 163 | # All values must lie in `integer_value_spec` of parent parameter. |
| 164 | "A String", |
| 165 | ], |
| 166 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 167 | "parameter": "A String", # Required. The parameter name must be unique amongst all ParameterSpecs. |
| 168 | "childParameterSpecs": [ # A child node is active if the parameter's value matches the child node's |
| 169 | # matching_parent_values. |
| 170 | # |
| 171 | # If two items in child_parameter_specs have the same name, they must have |
| 172 | # disjoint matching_parent_values. |
| 173 | # Object with schema name: GoogleCloudMlV1_StudyConfig_ParameterSpec |
| 174 | ], |
| 175 | "discreteValueSpec": { # The value spec for a 'DISCRETE' parameter. |
| 176 | "values": [ # Must be specified if type is `DISCRETE`. |
| 177 | # A list of feasible points. |
| 178 | # The list should be in strictly increasing order. For instance, this |
| 179 | # parameter might have possible settings of 1.5, 2.5, and 4.0. This list |
| 180 | # should not contain more than 1,000 values. |
| 181 | 3.14, |
| 182 | ], |
| 183 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 184 | "parentCategoricalValues": { # Represents the spec to match categorical values from parent parameter. |
| 185 | "values": [ # Matches values of the parent parameter with type 'CATEGORICAL'. |
| 186 | # All values must exist in `categorical_value_spec` of parent parameter. |
| 187 | "A String", |
| 188 | ], |
| 189 | }, |
| 190 | "scaleType": "A String", # How the parameter should be scaled. |
| 191 | # Leave unset for categorical parameters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 192 | }, |
| 193 | ], |
| 194 | }, |
| 195 | } |
| 196 | |
| 197 | studyId: string, Required. The ID to use for the study, which will become the final component of |
| 198 | the study's resource name. |
| 199 | x__xgafv: string, V1 error format. |
| 200 | Allowed values |
| 201 | 1 - v1 error format |
| 202 | 2 - v2 error format |
| 203 | |
| 204 | Returns: |
| 205 | An object of the form: |
| 206 | |
| 207 | { # A message representing a Study. |
| 208 | "inactiveReason": "A String", # Output only. A human readable reason why the Study is inactive. |
| 209 | # This should be empty if a study is ACTIVE or COMPLETED. |
| 210 | "createTime": "A String", # Output only. Time at which the study was created. |
| 211 | "state": "A String", # Output only. The detailed state of a study. |
| 212 | "name": "A String", # Output only. The name of a study. |
| 213 | "studyConfig": { # Represents configuration of a study. # Required. Configuration of the study. |
| 214 | "automatedStoppingConfig": { # Configuration for Automated Early Stopping of Trials. If no # Configuration for automated stopping of unpromising Trials. |
| 215 | # implementation_config is set, automated early stopping will not be run. |
| 216 | "medianAutomatedStoppingConfig": { # The median automated stopping rule stops a pending trial if the trial's |
| 217 | # best objective_value is strictly below the median 'performance' of all |
| 218 | # completed trials reported up to the trial's last measurement. |
| 219 | # Currently, 'performance' refers to the running average of the objective |
| 220 | # values reported by the trial in each measurement. |
| 221 | "useElapsedTime": True or False, # If true, the median automated stopping rule applies to |
| 222 | # measurement.use_elapsed_time, which means the elapsed_time field of |
| 223 | # the current trial's |
| 224 | # latest measurement is used to compute the median objective |
| 225 | # value for each completed trial. |
| 226 | }, |
| 227 | "decayCurveStoppingConfig": { |
| 228 | "useElapsedTime": True or False, # If true, measurement.elapsed_time is used as the x-axis of each |
| 229 | # Trials Decay Curve. Otherwise, Measurement.steps will be used as the |
| 230 | # x-axis. |
| 231 | }, |
| 232 | }, |
| 233 | "metrics": [ # Metric specs for the study. |
| 234 | { # Represents a metric to optimize. |
| 235 | "goal": "A String", # Required. The optimization goal of the metric. |
| 236 | "metric": "A String", # Required. The name of the metric. |
| 237 | }, |
| 238 | ], |
| 239 | "algorithm": "A String", # The search algorithm specified for the study. |
| 240 | "parameters": [ # Required. The set of parameters to tune. |
| 241 | { # Represents a single parameter to optimize. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 242 | "type": "A String", # Required. The type of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 243 | "parentDiscreteValues": { # Represents the spec to match discrete values from parent parameter. |
| 244 | "values": [ # Matches values of the parent parameter with type 'DISCRETE'. |
| 245 | # All values must exist in `discrete_value_spec` of parent parameter. |
| 246 | 3.14, |
| 247 | ], |
| 248 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 249 | "doubleValueSpec": { # The value spec for a 'DOUBLE' parameter. |
| 250 | "maxValue": 3.14, # Must be specified if type is `DOUBLE`. Maximum value of the parameter. |
| 251 | "minValue": 3.14, # Must be specified if type is `DOUBLE`. Minimum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 252 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 253 | "integerValueSpec": { # The value spec for an 'INTEGER' parameter. |
| 254 | "minValue": "A String", # Must be specified if type is `INTEGER`. Minimum value of the parameter. |
| 255 | "maxValue": "A String", # Must be specified if type is `INTEGER`. Maximum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 256 | }, |
| 257 | "categoricalValueSpec": { # The value spec for a 'CATEGORICAL' parameter. |
| 258 | "values": [ # Must be specified if type is `CATEGORICAL`. |
| 259 | # The list of possible categories. |
| 260 | "A String", |
| 261 | ], |
| 262 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 263 | "parentIntValues": { # Represents the spec to match integer values from parent parameter. |
| 264 | "values": [ # Matches values of the parent parameter with type 'INTEGER'. |
| 265 | # All values must lie in `integer_value_spec` of parent parameter. |
| 266 | "A String", |
| 267 | ], |
| 268 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 269 | "parameter": "A String", # Required. The parameter name must be unique amongst all ParameterSpecs. |
| 270 | "childParameterSpecs": [ # A child node is active if the parameter's value matches the child node's |
| 271 | # matching_parent_values. |
| 272 | # |
| 273 | # If two items in child_parameter_specs have the same name, they must have |
| 274 | # disjoint matching_parent_values. |
| 275 | # Object with schema name: GoogleCloudMlV1_StudyConfig_ParameterSpec |
| 276 | ], |
| 277 | "discreteValueSpec": { # The value spec for a 'DISCRETE' parameter. |
| 278 | "values": [ # Must be specified if type is `DISCRETE`. |
| 279 | # A list of feasible points. |
| 280 | # The list should be in strictly increasing order. For instance, this |
| 281 | # parameter might have possible settings of 1.5, 2.5, and 4.0. This list |
| 282 | # should not contain more than 1,000 values. |
| 283 | 3.14, |
| 284 | ], |
| 285 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 286 | "parentCategoricalValues": { # Represents the spec to match categorical values from parent parameter. |
| 287 | "values": [ # Matches values of the parent parameter with type 'CATEGORICAL'. |
| 288 | # All values must exist in `categorical_value_spec` of parent parameter. |
| 289 | "A String", |
| 290 | ], |
| 291 | }, |
| 292 | "scaleType": "A String", # How the parameter should be scaled. |
| 293 | # Leave unset for categorical parameters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 294 | }, |
| 295 | ], |
| 296 | }, |
| 297 | }</pre> |
| 298 | </div> |
| 299 | |
| 300 | <div class="method"> |
| 301 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 302 | <pre>Deletes a study. |
| 303 | |
| 304 | Args: |
| 305 | name: string, Required. The study name. (required) |
| 306 | x__xgafv: string, V1 error format. |
| 307 | Allowed values |
| 308 | 1 - v1 error format |
| 309 | 2 - v2 error format |
| 310 | |
| 311 | Returns: |
| 312 | An object of the form: |
| 313 | |
| 314 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 315 | # empty messages in your APIs. A typical example is to use it as the request |
| 316 | # or the response type of an API method. For instance: |
| 317 | # |
| 318 | # service Foo { |
| 319 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 320 | # } |
| 321 | # |
| 322 | # The JSON representation for `Empty` is empty JSON object `{}`. |
| 323 | }</pre> |
| 324 | </div> |
| 325 | |
| 326 | <div class="method"> |
| 327 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 328 | <pre>Gets a study. |
| 329 | |
| 330 | Args: |
| 331 | name: string, Required. The study name. (required) |
| 332 | x__xgafv: string, V1 error format. |
| 333 | Allowed values |
| 334 | 1 - v1 error format |
| 335 | 2 - v2 error format |
| 336 | |
| 337 | Returns: |
| 338 | An object of the form: |
| 339 | |
| 340 | { # A message representing a Study. |
| 341 | "inactiveReason": "A String", # Output only. A human readable reason why the Study is inactive. |
| 342 | # This should be empty if a study is ACTIVE or COMPLETED. |
| 343 | "createTime": "A String", # Output only. Time at which the study was created. |
| 344 | "state": "A String", # Output only. The detailed state of a study. |
| 345 | "name": "A String", # Output only. The name of a study. |
| 346 | "studyConfig": { # Represents configuration of a study. # Required. Configuration of the study. |
| 347 | "automatedStoppingConfig": { # Configuration for Automated Early Stopping of Trials. If no # Configuration for automated stopping of unpromising Trials. |
| 348 | # implementation_config is set, automated early stopping will not be run. |
| 349 | "medianAutomatedStoppingConfig": { # The median automated stopping rule stops a pending trial if the trial's |
| 350 | # best objective_value is strictly below the median 'performance' of all |
| 351 | # completed trials reported up to the trial's last measurement. |
| 352 | # Currently, 'performance' refers to the running average of the objective |
| 353 | # values reported by the trial in each measurement. |
| 354 | "useElapsedTime": True or False, # If true, the median automated stopping rule applies to |
| 355 | # measurement.use_elapsed_time, which means the elapsed_time field of |
| 356 | # the current trial's |
| 357 | # latest measurement is used to compute the median objective |
| 358 | # value for each completed trial. |
| 359 | }, |
| 360 | "decayCurveStoppingConfig": { |
| 361 | "useElapsedTime": True or False, # If true, measurement.elapsed_time is used as the x-axis of each |
| 362 | # Trials Decay Curve. Otherwise, Measurement.steps will be used as the |
| 363 | # x-axis. |
| 364 | }, |
| 365 | }, |
| 366 | "metrics": [ # Metric specs for the study. |
| 367 | { # Represents a metric to optimize. |
| 368 | "goal": "A String", # Required. The optimization goal of the metric. |
| 369 | "metric": "A String", # Required. The name of the metric. |
| 370 | }, |
| 371 | ], |
| 372 | "algorithm": "A String", # The search algorithm specified for the study. |
| 373 | "parameters": [ # Required. The set of parameters to tune. |
| 374 | { # Represents a single parameter to optimize. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 375 | "type": "A String", # Required. The type of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 376 | "parentDiscreteValues": { # Represents the spec to match discrete values from parent parameter. |
| 377 | "values": [ # Matches values of the parent parameter with type 'DISCRETE'. |
| 378 | # All values must exist in `discrete_value_spec` of parent parameter. |
| 379 | 3.14, |
| 380 | ], |
| 381 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 382 | "doubleValueSpec": { # The value spec for a 'DOUBLE' parameter. |
| 383 | "maxValue": 3.14, # Must be specified if type is `DOUBLE`. Maximum value of the parameter. |
| 384 | "minValue": 3.14, # Must be specified if type is `DOUBLE`. Minimum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 385 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 386 | "integerValueSpec": { # The value spec for an 'INTEGER' parameter. |
| 387 | "minValue": "A String", # Must be specified if type is `INTEGER`. Minimum value of the parameter. |
| 388 | "maxValue": "A String", # Must be specified if type is `INTEGER`. Maximum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 389 | }, |
| 390 | "categoricalValueSpec": { # The value spec for a 'CATEGORICAL' parameter. |
| 391 | "values": [ # Must be specified if type is `CATEGORICAL`. |
| 392 | # The list of possible categories. |
| 393 | "A String", |
| 394 | ], |
| 395 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 396 | "parentIntValues": { # Represents the spec to match integer values from parent parameter. |
| 397 | "values": [ # Matches values of the parent parameter with type 'INTEGER'. |
| 398 | # All values must lie in `integer_value_spec` of parent parameter. |
| 399 | "A String", |
| 400 | ], |
| 401 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 402 | "parameter": "A String", # Required. The parameter name must be unique amongst all ParameterSpecs. |
| 403 | "childParameterSpecs": [ # A child node is active if the parameter's value matches the child node's |
| 404 | # matching_parent_values. |
| 405 | # |
| 406 | # If two items in child_parameter_specs have the same name, they must have |
| 407 | # disjoint matching_parent_values. |
| 408 | # Object with schema name: GoogleCloudMlV1_StudyConfig_ParameterSpec |
| 409 | ], |
| 410 | "discreteValueSpec": { # The value spec for a 'DISCRETE' parameter. |
| 411 | "values": [ # Must be specified if type is `DISCRETE`. |
| 412 | # A list of feasible points. |
| 413 | # The list should be in strictly increasing order. For instance, this |
| 414 | # parameter might have possible settings of 1.5, 2.5, and 4.0. This list |
| 415 | # should not contain more than 1,000 values. |
| 416 | 3.14, |
| 417 | ], |
| 418 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 419 | "parentCategoricalValues": { # Represents the spec to match categorical values from parent parameter. |
| 420 | "values": [ # Matches values of the parent parameter with type 'CATEGORICAL'. |
| 421 | # All values must exist in `categorical_value_spec` of parent parameter. |
| 422 | "A String", |
| 423 | ], |
| 424 | }, |
| 425 | "scaleType": "A String", # How the parameter should be scaled. |
| 426 | # Leave unset for categorical parameters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 427 | }, |
| 428 | ], |
| 429 | }, |
| 430 | }</pre> |
| 431 | </div> |
| 432 | |
| 433 | <div class="method"> |
| 434 | <code class="details" id="list">list(parent, x__xgafv=None)</code> |
| 435 | <pre>Lists all the studies in a region for an associated project. |
| 436 | |
| 437 | Args: |
| 438 | parent: string, Required. The project and location that the study belongs to. |
| 439 | Format: projects/{project}/locations/{location} (required) |
| 440 | x__xgafv: string, V1 error format. |
| 441 | Allowed values |
| 442 | 1 - v1 error format |
| 443 | 2 - v2 error format |
| 444 | |
| 445 | Returns: |
| 446 | An object of the form: |
| 447 | |
| 448 | { |
| 449 | "studies": [ # The studies associated with the project. |
| 450 | { # A message representing a Study. |
| 451 | "inactiveReason": "A String", # Output only. A human readable reason why the Study is inactive. |
| 452 | # This should be empty if a study is ACTIVE or COMPLETED. |
| 453 | "createTime": "A String", # Output only. Time at which the study was created. |
| 454 | "state": "A String", # Output only. The detailed state of a study. |
| 455 | "name": "A String", # Output only. The name of a study. |
| 456 | "studyConfig": { # Represents configuration of a study. # Required. Configuration of the study. |
| 457 | "automatedStoppingConfig": { # Configuration for Automated Early Stopping of Trials. If no # Configuration for automated stopping of unpromising Trials. |
| 458 | # implementation_config is set, automated early stopping will not be run. |
| 459 | "medianAutomatedStoppingConfig": { # The median automated stopping rule stops a pending trial if the trial's |
| 460 | # best objective_value is strictly below the median 'performance' of all |
| 461 | # completed trials reported up to the trial's last measurement. |
| 462 | # Currently, 'performance' refers to the running average of the objective |
| 463 | # values reported by the trial in each measurement. |
| 464 | "useElapsedTime": True or False, # If true, the median automated stopping rule applies to |
| 465 | # measurement.use_elapsed_time, which means the elapsed_time field of |
| 466 | # the current trial's |
| 467 | # latest measurement is used to compute the median objective |
| 468 | # value for each completed trial. |
| 469 | }, |
| 470 | "decayCurveStoppingConfig": { |
| 471 | "useElapsedTime": True or False, # If true, measurement.elapsed_time is used as the x-axis of each |
| 472 | # Trials Decay Curve. Otherwise, Measurement.steps will be used as the |
| 473 | # x-axis. |
| 474 | }, |
| 475 | }, |
| 476 | "metrics": [ # Metric specs for the study. |
| 477 | { # Represents a metric to optimize. |
| 478 | "goal": "A String", # Required. The optimization goal of the metric. |
| 479 | "metric": "A String", # Required. The name of the metric. |
| 480 | }, |
| 481 | ], |
| 482 | "algorithm": "A String", # The search algorithm specified for the study. |
| 483 | "parameters": [ # Required. The set of parameters to tune. |
| 484 | { # Represents a single parameter to optimize. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 485 | "type": "A String", # Required. The type of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 486 | "parentDiscreteValues": { # Represents the spec to match discrete values from parent parameter. |
| 487 | "values": [ # Matches values of the parent parameter with type 'DISCRETE'. |
| 488 | # All values must exist in `discrete_value_spec` of parent parameter. |
| 489 | 3.14, |
| 490 | ], |
| 491 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 492 | "doubleValueSpec": { # The value spec for a 'DOUBLE' parameter. |
| 493 | "maxValue": 3.14, # Must be specified if type is `DOUBLE`. Maximum value of the parameter. |
| 494 | "minValue": 3.14, # Must be specified if type is `DOUBLE`. Minimum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 495 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 496 | "integerValueSpec": { # The value spec for an 'INTEGER' parameter. |
| 497 | "minValue": "A String", # Must be specified if type is `INTEGER`. Minimum value of the parameter. |
| 498 | "maxValue": "A String", # Must be specified if type is `INTEGER`. Maximum value of the parameter. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 499 | }, |
| 500 | "categoricalValueSpec": { # The value spec for a 'CATEGORICAL' parameter. |
| 501 | "values": [ # Must be specified if type is `CATEGORICAL`. |
| 502 | # The list of possible categories. |
| 503 | "A String", |
| 504 | ], |
| 505 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 506 | "parentIntValues": { # Represents the spec to match integer values from parent parameter. |
| 507 | "values": [ # Matches values of the parent parameter with type 'INTEGER'. |
| 508 | # All values must lie in `integer_value_spec` of parent parameter. |
| 509 | "A String", |
| 510 | ], |
| 511 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 512 | "parameter": "A String", # Required. The parameter name must be unique amongst all ParameterSpecs. |
| 513 | "childParameterSpecs": [ # A child node is active if the parameter's value matches the child node's |
| 514 | # matching_parent_values. |
| 515 | # |
| 516 | # If two items in child_parameter_specs have the same name, they must have |
| 517 | # disjoint matching_parent_values. |
| 518 | # Object with schema name: GoogleCloudMlV1_StudyConfig_ParameterSpec |
| 519 | ], |
| 520 | "discreteValueSpec": { # The value spec for a 'DISCRETE' parameter. |
| 521 | "values": [ # Must be specified if type is `DISCRETE`. |
| 522 | # A list of feasible points. |
| 523 | # The list should be in strictly increasing order. For instance, this |
| 524 | # parameter might have possible settings of 1.5, 2.5, and 4.0. This list |
| 525 | # should not contain more than 1,000 values. |
| 526 | 3.14, |
| 527 | ], |
| 528 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 529 | "parentCategoricalValues": { # Represents the spec to match categorical values from parent parameter. |
| 530 | "values": [ # Matches values of the parent parameter with type 'CATEGORICAL'. |
| 531 | # All values must exist in `categorical_value_spec` of parent parameter. |
| 532 | "A String", |
| 533 | ], |
| 534 | }, |
| 535 | "scaleType": "A String", # How the parameter should be scaled. |
| 536 | # Leave unset for categorical parameters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 537 | }, |
| 538 | ], |
| 539 | }, |
| 540 | }, |
| 541 | ], |
| 542 | }</pre> |
| 543 | </div> |
| 544 | |
| 545 | </body></html> |