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
20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 | |