update_ml_transform
async
¶
update_ml_transform(
transform_id: HashString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = 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/async_glue.py
21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 | |