update_ml_transform
¶
update_ml_transform(
transform_id: HashString,
*,
config_overrides: Optional[GlueClientConfig] = None,
name: Optional[NameString] = None,
description: Optional[DescriptionString] = None,
parameters: Optional[TransformParameters] = None,
role: Optional[RoleString] = None,
glue_version: Optional[GlueVersionString] = None,
max_capacity: Optional[NullableDouble] = None,
worker_type: Optional[WorkerType] = None,
number_of_workers: Optional[NullableInteger] = None,
timeout: Optional[Timeout] = None,
max_retries: Optional[NullableInteger] = None,
) -> UpdateMLTransformResponse
Updates an existing machine learning transform. Call this operation to tune the algorithm parameters to achieve better results.
After calling this operation, you can call the StartMLEvaluationTaskRun operation to assess how well your new parameters achieved your goals (such as improving the quality of your machine learning transform, or making it more cost-effective).
Parameters:
-
transform_id(HashString) –A unique identifier that was generated when the transform was created.
-
name(Optional[NameString], default:None) –The unique name that you gave the transform when you created it.
-
description(Optional[DescriptionString], default:None) –A description of the transform. The default is an empty string.
-
parameters(Optional[TransformParameters], default:None) –The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on the transform type.
-
role(Optional[RoleString], default:None) –The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.
-
glue_version(Optional[GlueVersionString], default:None) –This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
-
max_capacity(Optional[NullableDouble], default:None) –The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
When the
WorkerTypefield is set to a value other thanStandard, theMaxCapacityfield is set automatically and becomes read-only. -
worker_type(Optional[WorkerType], default:None) –The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.
-
For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. -
For the
G.1Xworker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker. -
For the
G.2Xworker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
-
-
number_of_workers(Optional[NullableInteger], default:None) –The number of workers of a defined
workerTypethat are allocated when this task runs. -
timeout(Optional[Timeout], default:None) –The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
max_retries(Optional[NullableInteger], default:None) –The maximum number of times to retry a task for this transform after a task run fails.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
EntityNotFoundException–A specified entity does not exist
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 | |